On 02/02/2011 22:32, Ed Leafe wrote: > On Feb 2, 2011, at 4:12 PM, Jacek Kałucki wrote: > >> def isMouseLeftDown(): >> - return wx.GetMouseState().leftDown >> + if wx.VERSION< (2, 9): >> + return wx.GetMouseState().leftDown >> + else: >> + return wx.GetMouseState().leftIsDown > > I really, really, really hate when software breaks like this. Why they > simply changed the wording of all these attributes with no change in behavior > is beyond me. > 2.9 is by definition unstable and I believe that want to use 2.9/3.0 to clean a bit up.
from the changes.html: More methods and properties moved from wx.MouseEvent to the wx.MouseState base class. Same for wx.KeyEvent and wx.KeyboardState, which is used to hold modifier key states, and which is also a base class of wx.MouseState. I'll post a note on the wx-dev list that this is a bit expanded, i.e. I think the removal of properties should be mentioned. Werner _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[email protected]
