Win xp box with Python2.2
Demo program won't run it just blinks, also the 'doodle' program in the
samples directory won't run either
Here're the traceback for doodle
Traceback (most recent call last):
File
"C:\Python22\Lib\site-packages\wxPython\samples\doodle\doodle.py", line
256, in ?
frame = DoodleFrame(None)
File
"C:\Python22\Lib\site-packages\wxPython\samples\doodle\doodle.py", line
250, in __init__
doodle = DoodleWindow(self, -1)
File
"C:\Python22\Lib\site-packages\wxPython\samples\doodle\doodle.py", line
44, in __init__
self.InitBuffer()
File
"C:\Python22\Lib\site-packages\wxPython\samples\doodle\doodle.py", line
77, in InitBuffer
self.reInitBuffer = False
NameError: global name 'False' is not defined
In fact none of the programs in the samples folder will run. Using the
latest wxPython downloaded from the website.
The win32 Unicode version for WinXP.
File
"C:\Python22\Lib\site-packages\wxPython\samples\doodle\doodle.
py", line
77, in InitBuffer
self.reInitBuffer = False
NameError: global name 'False' is not defined
Hi. You need at least Python 2.2.1 to have False and True defined. You
should probably upgrade to 2.3 while you're at it.
In fact none of the programs in the samples folder will run. Using the
latest wxPython downloaded from the website.
The win32 Unicode version for WinXP.
Do you always use unicode encodings of files? I had problems with the
unicode version on W2k...the TextCtrl just rendered little boxes after
loading a text file from disk. The non-unicode version works great.
File
"C:\Python22\Lib\site-packages\wxPython\samples\doodle\doodle.
py", line
77, in InitBuffer
self.reInitBuffer = False
NameError: global name 'False' is not defined
Hi. You need at least Python 2.2.1 to have False and True defined. You
should probably upgrade to 2.3 while you're at it.
If you need to stick with 2.2 for some reason then you can add code like this to your app: