wxpython

Make wxPython grid cell display multiple lines (with CR) and word wrap simulaneously

I have frames with panels displaying large grids (11x1600 and 4x34) with the 4x34 having Very Long strings, including multiple line mini-tables and Long lines requiring word wrapping within the same cells. Cells in excess of 2000 characters. Created using Python 2.5x, wxPython 2.8x and Boa 0.6.1. wx.grid.GridCellAutoWrapStringRenderer...

py2app dropping wxpython (Snow Leopard)

After upgrading to Snow Leopard, I'm having trouble building my application. It looks like py2app is building and copying over wxPython, but when I run from the buld app, it can't find wx. ...

wx.DatePickerCtrl in dialog ignores value entered after hitting return on wxGTK

I have a dialog with a date picker control. Hitting enter in the date picker closes the dialog (as expected). However, the date picker doesn't pick up the value entered by the user on wxGTK. Run the sample attached, click the button, enter a new date in the date picker, using the keyboard, and hit enter. The print statement shows the pre...

Can I extend functionality of wx.richtext?

Can I somehow extend functionality of wx.richtext? I wanted to add superscript to it. Is it possible? I tried to subclass wx.RichTextAttr, but failed — I couldn't set the style. ...

Modify StaticBoxSizer label on wxPython

Hi, Is there a way of modifying the label of a StaticBoxSizer on wxPython after initialization? I couldn't find anything on wxPython's documentation. Thank you ...

wx python card game

I know python and I'm a newibe with wx python but I would like to make a card game. However I have no idea how to make a image follow the mouse and put it in the middle of the screen in the when the program running. It will be nice if you guys can help me out. Thank you ...

Using the same handler for multiple wx.TextCtrls?

I'm having a bit of trouble with a panel that has two wxPython TextCtrls in it. I want either an EVT_CHAR or EVT_KEY_UP handler bound to both controls, and I want to be able to tell which TextCtrl generated the event. I would think that event.Id would tell me this, but in the following sample code it's always 0. Any thoughts? I've only t...

Are wxPython events posted in order?

If multiple events are posted using wxPostEvent/wxCallAfter from same thread e.g. on button click are they supposed to be processed in same order? In the below example wx.Callafter is used to post events, which eventually will call the callback functions, will they be called in same order, in which they were passed to wx.CallAfter def ...

Repainting bug in wxPython when resizing straight down with a ScrolledWindow scrolled to the bottom

I cannot produce a smaller example than my real application that reproduces the bug, so I'm just going to show a video and hope someone has an idea. I can test any ideas you have and let you know if they work. http://dl.getdropbox.com/u/2686961/wxbug.avi ...

better version of fakemodal?

I found a code snippet (http://aspn.activestate.com/ASPN/Mail/Message/wxpython-users/3695248) for a "fakemodal" dialog. This works for what I am doing, but I would like to make it act more like a modal dialog. My problem - I have a main window and a 2nd dialog window. The 2nd dialog is non-modal. I would like to open a sub-window of ...

Cross-Platform Programming Language with a decent gui toolkit?

For the program idea I have, it requires that the software be written in one binary that is executeable by all major desktop platforms, meaning it needs an interpreted language or a language within a JVM. Either is fine with me, but the programming language has to balance power & simplicity (e.g. Python) I know of wxPython but I have re...

How to Remove a Field from a wxStatusBar

This may be obvious, but I'm missing it. I'm working in wxpython. I have a wxStatusBar with several fields (these fields have text as well as other widgets). I need to be able to add and remove these fields throughout the app session. Is there a way to remove fields from a statusbar, or do I just have to redraw it? I think to do the...

wxPython : Problem updating background color of controls

[EDIT - Reduced and re-posted code, restated question] I would like to change the background color of a frame (or panel; whichever makes it work). The problem is that the background color of controls on that frame (or panel) don't have their background color updated until I click on the control (the slider control, specifically). Any i...

Vista/7 all-glass style with wxPython

Is this possible? I really want to make my wxPython program (since they only work on windows) use the glass theme. Also, if it's possible, is there a way to make dialogs that look like those new ones in Vista without coding much custom content? ...

wxPython wx.KeyEvent GetKeyCode()

All, I am writing a wxPython app in which I want (at the moment) to print the name of the key that was pressed. I have a dictionary that maps, for example, the WXK_BACK to "back" which seems a sane. However, which file must I import (include?) to get the definition of WXK_BACK ? I have the import wx statement, but am unsure which spe...

Alternatives to wx.lib.masked.NumCtrl

Hi everyone! In a wxPython application I'm developing I need a lot of input fields for numbers (integers and floats), so I tried using wx.lib.masked.NumCtrl, but my users now tell me that it's quite uncomfortable to use (and I agree with them). Is there an alternative widget implementation I can use, or should I just roll my own, start...

wxPython: Update wx.ListBox list

I have a wx.ListBox in a python program, and I wan't to change out the list in it on a wx.Timer update. I have the timer working, I just don't know how to change out the list that it displays. ...

Tree view GUI widget/gui library that can do multiple icons?

Screenshot I'm looking to recreate this in Python; I can't find a library that seems to have what I need. Are there any GUI libraries that might possibly have this? - I have scoured wxWidgets (which is my preferred gui library) but they have nothing similar. I have a script already that uses a standard wxTreeCtrl but it has no provisi...

wxPython: StatusBar does NOT update with long help from wxToolBar

I am creating a ToolBar within a wx.Frame init and setting the help string as follows: def __init_(self,...): ... self.CreateStatusBar() tb = self.CreateToolBar(wx.TB_HORIZONTAL|wx.NO_BORDER|wx.TB_FLAT) tb.SetToolBitmapSize((32,32)) tb.SetSize((-1,132)) tb.AddTool(ID_CLASSIFIER, bmp, shortHelpString='Classifier', longH...

Displaying OpenCV iplimage data structures with wxPython

Here is my current code (language is Python): newFrameImage = cv.QueryFrame(webcam) newFrameImageFile = cv.SaveImage("temp.jpg",newFrameImage) wxImage = wx.Image("temp.jpg", wx.BITMAP_TYPE_ANY).ConvertToBitmap() wx.StaticBitmap(self, -1, wxImage, (0,0), (wxImage.GetWidth(), wxImage.GetHeight())) I'm trying to display an iplimage captu...