Sorry this was supposed to be a new thread... :? Oops
···
-----Original Message-----
From: Gilbert, Joseph T. [mailto:jgilbert@tigr.ORG]
Sent: Friday, October 13, 2006 3:22 PM
To: wxPython-users@lists.wxwidgets.org
Subject: RE: [wxPython-users] best graphics format for toolbar icons?
Another potential gtk2 bug:
Running the LEDNumberCtrl tutorial from 'Another Tutorial' on the wiki
still... :0
The line:
'self.led.SetValue(st)'
throws an exception (exception follows)
Apparent the code:
"(ch>='0' && ch<='9') || ch=='-' || ch==' ' || ch=='.'"
doesn't check to see if the ':' character is included in the string?
Traceback (most recent call last):
File "wxPython_tests.py", line 31, in ?
app = MyApp(0)
File "xxx/python-2.4.1/lib/python2.4/site-packages/wx-2.7.1
-gtk2-ansi/wx/_core.py", line 7469, in __init__
self._BootstrapApp()
File "xxx/python-2.4.1/lib/python2.4/site-packages/wx-2.7.1
-gtk2-ansi/wx/_core.py", line 7069, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "wxPython_tests.py", line 26, in OnInit
frame = MyFrame(None, -1, 'lednumber.py')
File "wxPython_tests.py", line 12, in __init__
self.OnTimer(None)
File "wxPython_tests.py", line 22, in OnTimer
self.led.SetValue(st)
File "xxx/python-2.4.1/lib/python2.4/site-packages/wx-2.7.1
-gtk2-ansi/wx/gizmos.py", line 334, in SetValue
return _gizmos.LEDNumberCtrl_SetValue(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "(ch>='0' && ch<='9') ||
ch=='-' || ch==' ' || c
h=='.'" failed at ../../../../contrib/src/gizmos/ledctrl.cpp(140) in
SetValue(): wxLEDNum
berCtrl can only display numeric string values.
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org