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)