From: Kevin A. <ka...@us...> - 2004-05-06 01:30:35
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4144 Modified Files: menu.py Log Message: workaround needed for GTK too Index: menu.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/menu.py,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** menu.py 5 May 2004 20:27:07 -0000 1.34 --- menu.py 6 May 2004 01:30:22 -0000 1.35 *************** *** 191,195 **** # is returning the menu item, not the frame the event was # bound to ! if wx.Platform == '__WXMAC__': background = aWxEvent.GetEventObject().parent.parent else: --- 191,195 ---- # is returning the menu item, not the frame the event was # bound to ! if wx.Platform in ('__WXGTK__', '__WXMAC__'): background = aWxEvent.GetEventObject().parent.parent else: |