wxPython tab cleaning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		| @@ -2135,7 +2135,7 @@ class FloatCanvas(wx.Panel): | ||||
|             pass | ||||
|  | ||||
|     def LeftUpEvent(self,event): | ||||
|     	if self.HasCapture(): | ||||
|         if self.HasCapture(): | ||||
|             self.ReleaseMouse() | ||||
|         if self.GUIMode: | ||||
|             if self.GUIMode == "ZoomIn": | ||||
| @@ -2598,7 +2598,7 @@ class FloatCanvas(wx.Panel): | ||||
|             self.BoundingBox = None | ||||
|             self.ViewPortCenter= array( (0,0), Float) | ||||
|             self.TransformVector = array( (1,-1), Float) | ||||
|             self.MapProjectionVector = array( (1,1), Float)			 | ||||
|             self.MapProjectionVector = array( (1,1), Float) | ||||
|             self.Scale = 1         | ||||
|         self.BoundingBoxDirty = False | ||||
|  | ||||
|   | ||||
| @@ -688,7 +688,7 @@ class PlotCanvas(wx.Window): | ||||
|     def ScrollUp(self, units): | ||||
|         """Move view up number of axis units.""" | ||||
|         self.last_PointLabel = None        #reset pointLabel | ||||
|         if self.last_draw is not None: 	 | ||||
|         if self.last_draw is not None: | ||||
|              graphics, xAxis, yAxis= self.last_draw | ||||
|              yAxis= (yAxis[0]+units, yAxis[1]+units) | ||||
|              self.Draw(graphics,xAxis,yAxis) | ||||
|   | ||||
| @@ -441,7 +441,7 @@ class XML_Tree(wxTreeCtrl): | ||||
|         EVT_TREE_ITEM_COLLAPSED(self, self.GetId(), self.OnItemExpandedCollapsed) | ||||
|  | ||||
|         self.selection = None | ||||
| 	self.selectionChanging = False | ||||
|         self.selectionChanging = False | ||||
|         self.needUpdate = False | ||||
|         self.pendingHighLight = None | ||||
|         self.ctrl = self.shift = False | ||||
| @@ -683,10 +683,10 @@ class XML_Tree(wxTreeCtrl): | ||||
|  | ||||
|     def OnSelChanged(self, evt): | ||||
|         if self.selectionChanging: return | ||||
| 	self.selectionChanging = True | ||||
|         self.selectionChanging = True | ||||
|         self.UnselectAll() | ||||
|         self.SelectItem(evt.GetItem()) | ||||
| 	self.selectionChanging = False | ||||
|         self.selectionChanging = False | ||||
|  | ||||
|     def ChangeSelection(self, item): | ||||
|         # Apply changes | ||||
|   | ||||
		Reference in New Issue
	
	Block a user