4
votes
6answers
8k views

How to integrate simpleGUI with python 2.7 and 3.0 shell

I am learning Python from Coursera. In this course they use SimpleGUI module on CodeSkulptor. Can anyone tell me how to integrate SimpleGUI with python 2.7 and 3.0 shell... Thanks
4
votes
2answers
453 views

TypeError: Argument given by name “id” and position(2) — wxPython

I'm attempting to make tabs in wxPython using the Notebook class. Using the tutorial linked above, I came up with the following code: #!/usr/bin/env python import wx class DeployTab(wx.Panel): ...
4
votes
1answer
90 views

How to read a directory whose name has characters like “ / ”?

I'm working on OSX 10.5.8 that permits even "/" on filename characters. I have a wx.TextCtrl containing a directory to read (directory of music artists), there are bands called like this //Tense// ...
3
votes
2answers
714 views

WxPython: How to display any message window for a fixed time them let it automatically disappear

I am designing a software using python and Wxpython for GUI works. I want to display a message to user for a fixed amount of time then let it dissapear automatically. I unable to figure out how to do ...
3
votes
1answer
376 views

object has no attribute show

I have installed wxpython successfully which i verified by import wx But when I write a code import wx class gui(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self, ...
3
votes
1answer
46 views

Wx Python : Status Bar Does Not Show Menu Messages

I am just starting out with wx python and I can't get the status bar to display help text from menu items.I read that statusbar messages can be set with SetStatusText() but I want help texts like this ...
2
votes
1answer
576 views

Read a command prompt output in a separate window in python

I have a python script which builds a solution file using msbuild on windows system.I want to show the command prompt output when the build process is running.My code something looks like below def ...
2
votes
2answers
579 views

Can not start boa-constructor successfully

When I start boa-constructor from the command line by starting the script "Boa.py", I got the message says " D:\Python27\Lib\site-packages\boa-constructor>python Boa.py Starting Boa Constructor ...
2
votes
1answer
71 views

wxPython: How the radio buttons can remember my choise when I close the frame

Hello I have one main frame and a button which when its pressed a second frame opens. The second frame have 6 radio buttons. My question is when I choose a radiobutton different from the allready ...
2
votes
2answers
431 views

Having difficulty understanding wx.Sizers in wxPython

wxPython is very poorly documented and understanding sizers is abit difficult, ive had to print off code and study it piece by piece to understand what it does, and easier ways to memorize how it ...
2
votes
2answers
134 views

sendMessage() takes at most 3 arguments (4 given) error in wxPython

I am currently developing an GUI app with python v2.7 and wxPython v3.0 on windows 7 OS. I am using pubsub module for sending the information to my main GUI thread to update my GUI. I am using ...
2
votes
1answer
39 views

Trouble with Box Sizers in WxPython

I've been trying to produce something that allows me to have multiple sentences in a line. The code is: import wx app = wx.PySimpleApp() class MyDialog(wx.Frame): """ This is my dialog in which I ...
2
votes
1answer
136 views

wxPython wxScrolledWindow functions raising TypeError

I'm trying to learn how to use the wxPython wxScrolledWindow class for a project, and I've run into a wall. I've set up a program that makes a panel derived from the wxScrolledWindow class containing ...
2
votes
1answer
994 views

wxpython refresh window on button press

I have been having some trouble with my Python program. Basically, it is a very very simple file manager. I have been trying to get it to move between folders (user clicks a folder, program ...
2
votes
1answer
220 views

Remove beep from message dialog

I've tried to google it and I've looked in the wxpython docs but I just can't seem to find a way-- can you remove the annoying "error" beep that wx.MessageDialog makes when it pops up (aka when you ...
2
votes
1answer
50 views

add text in bins of histogram in wxpython

How to write text inside bins(bars) of histograms in wxpython? import csv import matplotlib import matplotlib.pyplot as plt import numpy as np from matplotlib.figure import Figure ...
2
votes
2answers
27 views

Add text at the cursor (not at end of line) after catching EVT_KEY_DOWN

I've written the following function which is triggered at each key down event in a text box. The idea is that it lets the user enter special characters (accented vowels for a Spanish verb conjugation ...
2
votes
1answer
115 views

Waiting for threading.Event until Frame closes

I've written a GUI and at some point a frame is opened as child of the mainframe and the function which opened the other frame should only continue when this frame is closed. I just don't understand ...
2
votes
1answer
140 views

Global event listeners in wxPython

I have a wx.html2 widget in my panel. Sadly wx.html2 doesn't have many event listeners (http://wxpython.org/Phoenix/docs/html/html2.WebView.html#events-events-emitted-by-this-class). Now I have this ...
2
votes
1answer
151 views

how to send data from child frame to main frame using wxpython

I am new to wxpython ,i wanted to know how we can send data from child frame to main frame in wxpython? Here is brief discription about my prog: child frame has spinctrl and a button , when we ...
1
vote
2answers
2k views

How to fetch process,thread name,levelname in customized python logger

I am developing customized logger program,as per the requirement i need to fetch the process,thread and name of object Inside the called function(In below example its obj needs to fetch inside the ...
1
vote
2answers
452 views

Redirect command prompt output to a python generated window

Developed a script which builds a project using msbuild. I have GUI developed using wxpython which has a button on which when user clicks would build a project using msbuild. Now, i want to open a ...
1
vote
2answers
20 views

How to find an item in a panel

I am using Python WX to make a large GUI containing maybe 100 CheckBoxes. I want to read the value of each checkbox and append these values to a list. I can do this with 100 lines of code but prefer ...
1
vote
2answers
79 views

Crashing of the app with wx.CallAfter() in a while infinite loop in wxPython/python

I am working with python v2.7 and wxPython v3.0 on windows 7 OS. In the following code snippet I have implemented a publisher-subscriber mechanism to update my GUI. I am using wx.CallAfter() for ...
1
vote
2answers
107 views

wxPython - Get existing windowDC/handle using wx python module?

I've been looking into using the wx python package on Windows 7. Specifically, I would like to be able to get the image data of a existing window (i.e. not a window opened by the python program). It ...
1
vote
1answer
26 views

Setting Scrapy start_urls from a Script

I have a working scrapy spider and I'm able to run it through a separate script following the example here. I have also created a wxPython GUI for my script that simply contains a multi-line TextCtrl ...
1
vote
1answer
69 views

Good approach for updating the GUI continuously in wxPython using threads?

I am working on a GUI app using python v2.7 and wxPython v3.0 on windows 7 OS. I have to update my GUI continuously which contains lots of panels. Each panels contains a wx.StaticText. I have to ...
1
vote
2answers
48 views

getting parts of a wxpython program to communicate with one another

So after writing a bunch of small, personal wxPython apps I've settled on organizing the program into a series of wx.Panel()s like so: class display(wx.Panel): <buttons, sliders, etc> ...
1
vote
3answers
115 views

Disablling scrolling of a scroll bar while keeping it visible in wxPython

I am currently working with wxPython v3.0, python v2.7 on Windows 7 OS. I have question regarding the scroll bars. In my application I have a GUI which has many scrolled panels. The scroll bar of ...
1
vote
1answer
62 views

How to have different colored texts in a wx.StaticText() in wxPython

Level: Beginner I am developing a GUI with wxPython on Windows 7 OS. I have a question regarding the wx.StaticText() I would like to have two different colors for a text in a wx.StaticText() field. ...
1
vote
1answer
124 views

wxpython toggle toolbar buttons

I have wxpython toolbar with couple of icons, for example connect, play, save etc. I want to toggle the connect icon. When I am connected then connect bitmap should replace with disconnect and vice ...
1
vote
1answer
141 views

wxpython toolbar textctrl spacing

I have textctrl in wxPython toolbar, I couldn't figure out how to align it with icons(22x22) and have some spacing/padding between toolbar icons and text control and also to frame borders. import wx ...
1
vote
3answers
98 views

Saving wxPanel to Image

I'm looking for a way to essentially screen capture a whole wxPanel, and save it as a PNG. The kicker is, there is no screen. I need to be able to "draw" the panel and save the drawn panel with no ...
1
vote
1answer
2k views

wxPython Background image on frame

MMGP Answerd but wont let me credit him right ;-) So I will at least mention him here. (And I did finally get to credit him... 8-) His linked discussion on Double Buffering provided a base code ...
1
vote
1answer
16 views

Trouble resetting / backtracking with variables

I've written a Cryptoquote Generator in Python using wxPython. I don't really have any problems with wxPython itself, but rather with resetting my variables. My program works this way: I have a button ...
1
vote
1answer
30 views

wxPython textctrl temporarily gets black rectangle

So, I'm trying to write a program using wxPython which will have a notebook with tabs that each have the user enter some data into textboxes. This is for a physics related project so I want each ...
1
vote
1answer
47 views

wxPython Reload a grid in a panel

I've got several classes so I prefer not to paste any code here (if that's possible :P) The problem: I've created a class which creates a frame, and this frame contains a panel. In another class I've ...
1
vote
1answer
30 views

wxPython C++ part of TextCtrl is being deleted

I am trying to put together a gui in Python for a school project, but I am getting an error and don't really understand why. self.prompt.addAnswer(i, self.ansControls[i].GetValue()) File ...
1
vote
1answer
38 views

Updating the labels of the panels in a GUI using threading in wxPython

Level: Beginner I am using python v2.7 and wxPython v3.0 and the OS is windows 7. My GUI app: Well in my GUI app I am reading some values from a server and then based upon number of these values I ...
1
vote
1answer
24 views

how to set wxTooltip or tooltip like on wxMenuItem

if I am not wrong wxMenuITem does not support tooltips is there an easy turn around to show a popup tooltip of help upon mouse focus on a menu item for a sec or 2 ?
1
vote
1answer
34 views

(PTK) Start failed when creating tool instance: Console

When I load up PTK, I get the following error: start failed when creating tool instance: Console Do you know what the problem is? I am running the standard python 2.7.5 from python.org. I ...
1
vote
1answer
190 views

any python lightweight gui library? [closed]

I've tried using pyinstaller to package a simple hello world example using both pyqt and wxPython and both of them were about 15mb to 20mb. Why is it so big , its not practical for simple apps. Is ...
1
vote
1answer
160 views

How Can I Safely Manage wxPython Progress Dialog Threading?

I have several calculations to run without any user input and without the user worrying about the program having frozen, so I am trying to show a progress bar popup to keep them aware of what's ...
1
vote
1answer
77 views

What code should I read next to determine the cause of a wx._core.PyAssertionError

We have been having a problem with loading files using wxPython the use case is that we have these files/snips on a folder on the computer. The snips are a small section of an original html file - ...
1
vote
1answer
51 views

wxPython: Toolbar Menu close event

I am creating a python app with wxPython 2.9.5 which features a system tray icon with a menu. I would like to receive an event when the menu is hidden/closed. On the mac the wx.EVT_TASKBAR_* event are ...
1
vote
1answer
47 views

wxPython - application updater

Iv built an appplication with wxPython and cefPython. Now I am building a updater to update my software. The process is as follows: Updater is called once the app starts Updater checks with the API ...
1
vote
2answers
71 views

How to schedule a task using python

I am working on python script which schedules a task. I have created a GUI from where user schedules his task.The GUI is as shown below Now my script has to receive the inputs from this GUI and ...
1
vote
1answer
73 views

Wxpython save is not working in Windows7

I need to save a text file in my editor this is the code for saving the file but the code is not working in Windows 7 my code is def OnSaveFile(self, event): if self.last_name_saved: ...
1
vote
2answers
286 views

passing variables from one class to another in wxpython

I have a problem with passing textCtrl data from one class to another in wxpython. I tried using the instance method of passing variables but if I use init_function it is only relevant at the start ...
1
vote
2answers
61 views

call a function from another function within the class

My class is, class MainFrame(wx.Frame): def __init__(self,parent,ID,title): wx.Frame.__init__(self, parent, ID, title, style=wx.DEFAULT_FRAME_STYLE ^ wx.RESIZE_BORDER ^ ...