Hi Frank,
I am looking into FlatMenu for use in Task Coach so I'm testing it
(first Windows XP, Mac and Linux to follow).On Windows with ctypes installed, but not win32, I get this exception
when running the FlatMenuDemo (linenumbers might be a bit off because
I edited the files):Traceback (most recent call last):
File "FlatMenuDemo.py", line 525, in <module>
main()
File "FlatMenuDemo.py", line 519, in main
frame = FlatMenuDemo(None, -1)
File "FlatMenuDemo.py", line 132, in __init__
self.CreateMenu()
File "FlatMenuDemo.py", line 162, in CreateMenu
fileMenu = FM.FlatMenu()
File "c:\Documents and Settings\fniessink.ZUIDPOOL\My
Documents\FlatMenu\FlatMenu.py", line 2725, in __init__
FlatMenuBase.__init__(self)
File "c:\Documents and Settings\fniessink.ZUIDPOOL\My
Documents\FlatMenu\FlatMenu.py", line 1816, in __init__
ShadowPopupWindow.__init__(self)
File "c:\Documents and Settings\fniessink.ZUIDPOOL\My
Documents\FlatMenu\FlatMenu.py", line 1447, in __init__
cstyle= win32gui.GetClassLong(self.GetHandle(), GCL_STYLE)
NameError: global name 'win32gui' is not definedSolution is to change the following line in FlatMenu.py:
if "__WXMSW__" in wx.Platform and _libimported:
into
if "__WXMSW__" in wx.Platform and _libimported == "MH":
Thank you for the bug report and the fix, actually I didn't know
someone else was using FlatMenu except me
Please report to me if you find anything strange, I don't know of
anyone that has tested FlatMenu apart me
Thank you.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
···
On 4/6/07, Frank Niessink wrote: