From: Alex T. <ale...@us...> - 2005-05-17 14:25:30
|
Update of /cvsroot/pythoncard/PythonCard/tools/resourceEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27388 Modified Files: resourceEditor.py Log Message: Fix problem of components' size changing unpredictably, by removing old Windows variant code. Index: resourceEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/resourceEditor.py,v retrieving revision 1.220 retrieving revision 1.221 diff -C2 -d -r1.220 -r1.221 *** resourceEditor.py 13 May 2005 00:16:21 -0000 1.220 --- resourceEditor.py 17 May 2005 14:25:21 -0000 1.221 *************** *** 685,699 **** return ! try: ! # Windows ! xOffset = event.x - self.offset[0] ! yOffset = event.y - self.offset[1] ! except: ! # Mac OS X and Linux/GTK ! #x, y = event.GetPosition() ! globalPosition = wx.GetMousePosition() ! x, y = self.components[self.resizingHandleTarget].ScreenToClient(globalPosition) ! xOffset = x - self.offset[0] ! yOffset = y - self.offset[1] xStartOffset = self.startPosition[0] + e * xOffset --- 685,693 ---- return ! # AGT 2005-05-17 Removed obsolete Windows variant ! globalPosition = wx.GetMousePosition() ! x, y = self.components[self.resizingHandleTarget].ScreenToClient(globalPosition) ! xOffset = x - self.offset[0] ! yOffset = y - self.offset[1] xStartOffset = self.startPosition[0] + e * xOffset |