Demo crashes on wx.TextCtrl
Andrea Gavana
andrea.gavana at gmail.com
Wed Oct 11 03:59:46 PDT 2006
Hi Robin,
I get a PyAssertionError when I try to run the demo for
wx.TextCtrl in the latest pre-release:
Traceback (most recent call last):
File "D:\MyProjects\prova58.py", line 7, in ?
style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
File "C:\Python24\Lib\site-packages\wx-2.7.0-msw-unicode\wx\_controls.py", lin
e 1697, in __init__
_controls_.TextCtrl_swiginit(self,_controls_.new_TextCtrl(*args, **kwargs))
wx._core.PyAssertionError: C++ assertion "!(style & wxTE_PROCESS_ENTER)" failed
at ..\..\src\msw\textctrl.cpp(577) in wxTextCtrl::MSWGetStyle():
wxTE_PROCESS_ENTER style is ignored for multiline text controls (they
always process it)
Try to run the following script to see it:
import wx
app = wx.PySimpleApp()
frame = wx.Frame(None, -1, title="Demo Problem", size=(400, 400))
panel = wx.Panel(frame, -1)
textCtrl = wx.TextCtrl(panel, -1, "Hello wxPython", pos=(100, 100),
style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
frame.Show()
app.MainLoop()
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
More information about the wxpython-dev
mailing list