Problems on Linux but not Win32

I have attached 2 files of code. It works great on Win32, but I get errors
on Linux. They occurr when I place the cursor into a text box, or enter
information into the text box. Any ideas what I'm doing wrong?

Here are the errors:

(wxApp1.py:22330): GLib-GObject-WARNING **: invalid cast from `GtkEntry' to
`G
TextView'

(wxApp1.py:22330): Gtk-CRITICAL **: file gtktextview.c: line 1225
(gtk_text_vi
_get_buffer): assertion `GTK_IS_TEXT_VIEW (text_view)' failed

(wxApp1.py:22330): Gtk-CRITICAL **: file gtktextbuffer.c: line 3458
(gtk_text_
ffer_get_selection_bounds): assertion `GTK_IS_TEXT_BUFFER (buffer)' failed

(wxApp1.py:22330): GLib-GObject-WARNING **: invalid cast from `GtkEntry' to
`G
TextView'

(wxApp1.py:22330): Gtk-CRITICAL **: file gtktextview.c: line 1225
(gtk_text_vi
_get_buffer): assertion `GTK_IS_TEXT_VIEW (text_view)' failed

(wxApp1.py:22330): Gtk-CRITICAL **: file gtktextbuffer.c: line 3458
(gtk_text_
ffer_get_selection_bounds): assertion `GTK_IS_TEXT_BUFFER (buffer)' failed

(wxApp1.py:22330): GLib-GObject-WARNING **: invalid cast from `GtkEntry' to
`G
TextView'

(wxApp1.py:22330): Gtk-CRITICAL **: file gtktextview.c: line 1225
(gtk_text_vi
_get_buffer): assertion `GTK_IS_TEXT_VIEW (text_view)' failed

(wxApp1.py:22330): Gtk-CRITICAL **: file gtktextbuffer.c: line 3458
(gtk_text_
ffer_get_selection_bounds): assertion `GTK_IS_TEXT_BUFFER (buffer)' failed

(wxApp1.py:22330): GLib-GObject-WARNING **: invalid cast from `GtkEntry' to
`G
TextView'

(wxApp1.py:22330): Gtk-CRITICAL **: file gtktextview.c: line 1225
(gtk_text_vi
_get_buffer): assertion `GTK_IS_TEXT_VIEW (text_view)' failed

(wxApp1.py:22330): Gtk-CRITICAL **: file gtktextbuffer.c: line 3458
(gtk_text_
ffer_get_selection_bounds): assertion `GTK_IS_TEXT_BUFFER (buffer)' failed

(wxApp1.py:22330): GLib-GObject-WARNING **: invalid cast from `GtkEntry' to
`G
TextView'

(wxApp1.py:22330): Gtk-CRITICAL **: file gtktextview.c: line 1225
(gtk_text_vi
_get_buffer): assertion `GTK_IS_TEXT_VIEW (text_view)' failed

(wxApp1.py:22330): Gtk-CRITICAL **: file gtktextbuffer.c: line 3458
(gtk_text_
ffer_get_selection_bounds): assertion `GTK_IS_TEXT_BUFFER (buffer)' failed

wxApp1.py (552 Bytes)

wxFrame1.py (10.2 KB)

Matt Maxson wrote:

I have attached 2 files of code. It works great on Win32, but I get errors
on Linux. They occurr when I place the cursor into a text box, or enter
information into the text box. Any ideas what I'm doing wrong?

Which version? Can you provide a simpler hand-written example?

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!