From: Digital X. <dig...@us...> - 2007-04-19 04:10:39
|
Update of /cvsroot/openrpg/openrpg1/orpg/mapper In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv4036/orpg/mapper Modified Files: Tag: BRANCH-1-7-1 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.67.2.1 retrieving revision 1.67.2.2 diff -C2 -d -r1.67.2.1 -r1.67.2.2 *** map.py 4 Apr 2007 01:37:28 -0000 1.67.2.1 --- map.py 19 Apr 2007 04:10:19 -0000 1.67.2.2 *************** *** 1085,1088 **** --- 1085,1089 ---- 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() *************** *** 1096,1099 **** --- 1097,1103 ---- 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): |