Пример #1
0
 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"
Пример #2
0
 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"
Пример #3
0
 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)
Пример #4
0
    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)