wxpython

Do Python and wxPython run on Windows 98?

I'm trying to write an application that should work both on Windows 98 and XP. I decided to go with Python, but I'm having trouble even installing it on Win'98 (Python 2.7 installer says something about missing features of Windows Installer, but AFAIK 2.0 is the latest Windows Installer version compatible with '98). Does anyone have a...

wxPython: How to make a TextCtrl fill a Panel

How do I set the size of a multi-line TextCtrl to always fill its parent panel? ...

How to suppress Gtk-warnings from a wxWidgets/wxPython application?

The wxWidgets project uses GTK in Linux, and my wxPython-based application with basic components makes a lot of warnings and errors for which I as a python coder/end user have not much to do about it. The errors distract my standard streams and aren't fatal to my program. The usual ones in my case are: (python2.6:9886): Gtk-WARNING **:...

Pygments in wxPython?

Is it at all possible to use Pygments inside of wxPython to provide syntax highlighting? ...

wxPython: Highlight item in GidSizer upon mouse click

I have a Panel with a bunch of pictures placed on it in a GridSizer layout. How can I draw a highlighted color around the edge of an image or its border to show that it has been selected upon a mouse click event? ...

Dynamic wx.RadioButtons

I'm having some trouble with the procedure below. First pass through the procedure, everything appears to work OK. Subsequent passes, the labels overwrite the previous label w/o erasing, plus the initial loop that hides the buttons doesn't appear to function. def drawbutton(self, event): rbuttons = [ wx.RadioButton(self,-1,'x...

How do I disable a button after it's clicked in wxpython?

There are two buttons in my little program, start and stop. And what I want is to disable the start button after I click it, and when I hit the stop button it should return to normal. How can I do this? I googled for a while and couldn't find the answer, hope you guys can help me out. Thanks! ...

wxPython: Respond to Listctrl change exactly once

I'm working on a form using wxPython where I want want listctrl's list of values to change based on the selection of another listctrl. To do this, I'm using methods linked to the controlling object's EVT_LIST_ITEM_SELECTED and EVT_LIST_ITEM_DESELECTED events to call Publisher.sendMessage. The control to be changed has a method that is ...

Is there a wxpython event like program_start?

OK, I'm trying to explain what I want to achieve in another way. Here's an example: Say if it's an anti virus program, and user can choose between two ways to run the program, choice one, automatically start to scan disks for virus when the program starts up, choice two, hit the start button to make the program scan disks for virus afte...

wxPython: How do I find out which widget has the focus?

How do I find out which widget in my wx.Frame has the focus? ...

How to customize wx.ProgressDialog?

Is it possible to customize ProgressDialog in wxPython? For instance, I would like to make the progressbar slimmer, and the window size wider. SetSize() method doesn't appear to have any effect! ...

When while loop placed in wxPython events

I'm trying to write a GUI program grabbing specific contents from a webpage. The idea is when I hit the start button, the program should start extracting information from that page. And I want to add some code to check if connected to the Internet. If not, continue trying until connected. So I just added the following code in the event...

Python: wx.ListCtrl -> how to make one of the items a picture that once clicked opens a file

I have a wx.ListCtrl instance to which I use InsertColumn like this: Path | Size | ... | Last run For each item to be displayed I have a function that sets all the fields: setStringItem(index, 0, path) setStringItem(index, 1, size) ... I want on column 6 (Last run) to do the following: 1) add a picture 2) the picture should be clicka...

wxPython SetBackgroundColour not working on OS X

I haven't had to do any GUI programming in a long time, so I might be being obtuse here, so please bear with me if this is a stupid question. I decided to use wxPython for a small hobby project, and I'm having trouble changing the background colour of the main window. I'm using Python 2.6.2 and wxPython 2.8.11.0 on Snow Leopard. Can anyo...

How to control/call another python script within one python script? (Communicate between scripts)

I'm working on one GUI program, and was gonna add a long running task into one event, but I found this would make the whole program freeze a lot, so considering other people's advice I would make the GUI only responsible for starting, stopping and monitoring and make the long running task run as a separate script. The only way I know to ...

How to align the text in a wx.ListBox using wxPython?

Hello, I want the text of the ListBox to be centered, is that possible? Thanks in advance :) ...

wxPython GridSizer.Add() not working for custom control

I'm trying to create a custom control based on wx.richtext.RichTextCtrl and I'm running into a problem. Whenever I attempt to add the custom control to a sizer, wxPython chokes with the error Traceback (most recent call last): File "pyebook.py", line 46, in <module> frame = MainFrame(None, 'pyebook') File "pyebook.py", line 14, ...

How to make a event run immediately after a GUI program starts in wxpython?

I'm working on a GUI program in which I already bind a start button with one event, and when I click the start button, the event runs as I like. My question is, if I want my program to start the event immediately after the GUI program starts, which means the start button is immediately being "clicked" once the program starts, how do I do...

Resizing a wxPython wx.Panel?

I'm trying to place an image panel on a form such that when a button is clicked the 64x64 image that's put on the panel at program start is replaced with a bigger 320x224 image - the pixel sizes aren't so much important as they are being different sizes. I've ALMOST got it - right now the images both load and it does indeed put the secon...

wxWidgets/Python Gradient Editor?

This open source fractal program Fraqtive, which uses Qt, has a really cool little gradient editor for coloring your fractals: http://fraqtive.mimec.org/node/34 Does anyone know of any nice gradient editing interfaces that use wxWidget/wxPython? ...