dabo Commit Revision 3011 Date: 2007-03-31 08:48:46 -0700 (Sat, 31 Mar 2007) Author: Ed Trac: http://svn.dabodev.com/trac/dabo/changeset/3011
Changed: U trunk/dabo/ui/uiwx/__init__.py
Log: Added 3 mouse state methods: isMouseLeftDown(), isMouseRightDown(), and isMouseMiddleDown(). They return True if the specified mouse button is down; False otherwise.
Diff: Modified: trunk/dabo/ui/uiwx/__init__.py =================================================================== --- trunk/dabo/ui/uiwx/__init__.py 2007-03-31 15:23:02 UTC (rev 3010) +++ trunk/dabo/ui/uiwx/__init__.py 2007-03-31 15:48:46 UTC (rev 3011) @@ -545,6 +545,18 @@ return wx.GetMouseState().altDown +def isMouseLeftDown(): + return wx.GetMouseState().leftDown + + +def isMouseRightDown(): + return wx.GetMouseState().rightDown + + +def isMouseMiddleDown(): + return wx.GetMouseState().middleDown + + #### This will have to wait until I can figure out how to simulate a #### modal form for the calendar. # def popupCalendar(dt=None, x=None, y=None, pos="topleft"):
©2007 Ed Leafe |