def enter(self): if _DEBUG: print "EditorState.enter" self.interface = wx.GetApp().projectObject from pig.editor.GraphicsManager import graphicsManager self.graphicsManager = graphicsManager PigState.enter(self) self.graphicsManager.boxDict.clear() wx.CallAfter(self.graphicsManager.set_selection, wx.GetApp().selectedObjectDict) if _DEBUG: print "EditorState.enter complete"
def exit(self): if _DEBUG: print "EditorState.exit" self.graphicsManager.boxDict.clear() # wx.CallAfter(wx.GetApp().set_selection,[]) if _DEBUG: print "EditorState.exit complete" PigState.exit(self)