From: Digital X. <dig...@us...> - 2007-04-19 04:01:53
|
Update of /cvsroot/openrpg/openrpg1/orpg/mapper In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv744/orpg/mapper Modified Files: map.py Log Message: Workaround for a wxPython a bug on some *nix platforms that would not change the cursor back to default after it left a disabled tab Index: map.py =================================================================== RCS file: /cvsroot/openrpg/openrpg1/orpg/mapper/map.py,v retrieving revision 1.70 retrieving revision 1.71 diff -C2 -d -r1.70 -r1.71 *** map.py 3 Apr 2007 00:21:43 -0000 1.70 --- map.py 19 Apr 2007 04:01:47 -0000 1.71 *************** *** 1083,1086 **** --- 1083,1087 ---- self.Bind(FNB.EVT_FLATNOTEBOOK_PAGE_CHANGED, self.on_layer_change) self.Bind(wx.EVT_SIZE, self.on_size) + self.Bind(wx.EVT_LEAVE_WINDOW, self.OnLeave) self.load_default() *************** *** 1094,1097 **** --- 1095,1101 ---- self.log.log("Exit map_wnd", ORPG_DEBUG) + def OnLeave(self, evt): + if "__WXGTK__" in wx.PlatformInfo: + wx.SetCursor(wx.StockCursor(wx.CURSOR_ARROW)) def load_default(self): |