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...
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.
...
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 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.
...
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
...
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
...
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...
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 ...
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
...
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 ...
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...
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...
[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...
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?
...
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...
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...
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.
...
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...
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...
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...