controls/DebugVariablePanel/DebugVariableGraphicPanel.py
changeset 1212 b351d3a7917c
parent 1209 953a8f14040a
child 1213 599e43ec921b
equal deleted inserted replaced
1211:e3f805ba74ca 1212:b351d3a7917c
   306             self.DraggingAxesPanel.SetSize(wx.Size(width, height))
   306             self.DraggingAxesPanel.SetSize(wx.Size(width, height))
   307             self.DraggingAxesPanel.ResetGraphics()
   307             self.DraggingAxesPanel.ResetGraphics()
   308             self.DraggingAxesPanel.SetPosition(wx.Point(0, -height))
   308             self.DraggingAxesPanel.SetPosition(wx.Point(0, -height))
   309         else:
   309         else:
   310             self.DraggingAxesPanel = panel
   310             self.DraggingAxesPanel = panel
   311         self.DraggingAxesBoundingBox = panel.GetAxesBoundingBox(absolute=True)
   311         self.DraggingAxesBoundingBox = panel.GetAxesBoundingBox(parent_coordinate=True)
   312         self.DraggingAxesMousePos = wx.Point(
   312         self.DraggingAxesMousePos = wx.Point(
   313             x_mouse_start - self.DraggingAxesBoundingBox.x, 
   313             x_mouse_start - self.DraggingAxesBoundingBox.x, 
   314             y_mouse_start - self.DraggingAxesBoundingBox.y)
   314             y_mouse_start - self.DraggingAxesBoundingBox.y)
   315         self.MoveDragNDrop(x_mouse, y_mouse)
   315         self.MoveDragNDrop(x_mouse, y_mouse)
   316         
   316