blissend
unread,May 22, 2012, 12:06:23 PM5/22/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wxpytho...@googlegroups.com
Hi,
I'm using Fedora 16 with wxPython 2.9.3.1 and I'm having problems setting a textctrl to be multiline. It works fine on both Windows 7 and Fedora 16 if I do this...
text = wx.TextCtrl(frame, -1, 'test', size=(200,200), style=wx.TE_MULTILINE)
However, if I do it this way it only works on Windows 7 but throws errors/warnings on Fedora 16...
text = wx.TextCtrl(frame, -1, 'test', size=(200,200))
text.SetWindowStyle(wx.TE_MULTILINE)
This is the warning I get on Linux...
(debug.py:2094): GLib-GObject-WARNING **: invalid cast from `GtkEntry' to `GtkTextView'
I first noticed this using XRC to define a textctrl to be multiline but it threw a different message on Linux...
wx._core.PyAssertionError: C++ assertion "IsSingleLine()" failed at /tools/wxPython-src-2.9.3.1/src/gtk/textctrl.cpp(828) in GetEditable(): shouldn't be called for multiline
Am I doing something wrong here?
Thanks,
Adam