From: Kevin A. <ka...@us...> - 2004-07-28 07:11:15
|
Update of /cvsroot/pythoncard/PythonCard/samples/companies In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20939/samples/companies Modified Files: companies.py Log Message: changed handler to work on Mac Index: companies.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/companies/companies.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** companies.py 30 Apr 2004 23:50:06 -0000 1.12 --- companies.py 28 Jul 2004 07:11:06 -0000 1.13 *************** *** 10,13 **** --- 10,14 ---- import os, sys import webbrowser + import wx # don't use a .ini *************** *** 25,28 **** --- 26,38 ---- flatfileDatabase.FlatfileDatabase.on_initialize(self, event) + # KEA 2004-07-27 + # we won't receive a mouseUp event on Mac OS X + # so we fake it + def on_mouseDown(self, event): + if wx.Platform == '__WXMAC__': + self.on_mouseUp(event) + else: + event.skip() + def on_mouseUp(self, event): #print event.target.name |