Greetings-
I am new to wxPython (I have been using Tkinter for a year or so), and am
building an application that will use lots of text entry fields (i.e. Name,
with a field to enter the name). Tkinter has a nifty widget combining the
label and entry into one. it handles the position of the label (North,
South, East, West, or combinations) and other parameters. Is there such a
beast in wxPython? It seems to me that it would be a common combination, but
I didn't find anything like it in the demo program. If it odes not exist. I
will take a crack at putting one together for wxPython.
I am new to wxPython (I have been using Tkinter for a year or so), and am
building an application that will use lots of text entry fields (i.e.
Name,
with a field to enter the name). Tkinter has a nifty widget combining the
label and entry into one. it handles the position of the label (North,
South, East, West, or combinations) and other parameters. Is there such a
beast in wxPython?
There isn't, but it would be easy to create one. Take a look at
wxPython/lib/filebrowsebutton.py for an example of making a composite
widget.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!
There is a point in my script where I wish to Clear() and rebuild the list
for a combo. If the combo is not dropped down at the time, it works fine.
However, if the list is dropped down (by user just having added a new entry),
then there's a seg-fault.
Here are the complaints from GTK:
Gtk-WARNING **: invalid cast from `(unknown)' to `GtkObject'
Gtk-CRITICAL **: file gtksignal.c: line 725 (gtk_signal_connect): assertion
`GTK_IS_OBJECT (object)' failed.
Gtk-CRITICAL **: file gtkwidget.c: line 1641 (gtk_widget_realize): assertion
`GTK_IS_WIDGET (widget)' failed.
Gtk-CRITICAL **: file gtkwidget.c: line 1640 (gtk_widget_realize): assertion
`widget != NULL' failed.
Gtk-CRITICAL **: file gtkwidget.c: line 1428 (gtk_widget_show): assertion
`GTK_IS_WIDGET (widget)' failed.
or others, depending what I've been trying, but 725 and 1641 are always
listed.
Is there a way to cause it to 'roll-up'. I don't think there's a way to force
the window to process a simulated Escape key event.