I've got two questions:
1. Is there a way to use a wxSpinCtrl or a wxSlider with float values? So far it seems to me that these two only handles int values.
2. How can I catch a wxKeyEvent in a wxFileDialog? This code won't work:
from wxPython.wx import wxFileDialog, EVT_KEY_UP
from wxPython.lib.evtmgr import eventManager
I've got two questions:
1. Is there a way to use a wxSpinCtrl or a wxSlider with float values? So far it seems to me that these two only handles int values.
Yes they are only designed to be used with ints, however with a bit of work you can make them cycle through anything, floats, lists of strings, whatever. For example, use a wxSpinButton and a wxTextCtrl and then in response to the events from the spin button update the text ctrl however you wish.
2. How can I catch a wxKeyEvent in a wxFileDialog? This code won't work:
On Windows you can't. This is because the wxFileDialog and other "common dialogs" are not true wxDialogs but are just wrappers around platform API functions.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!