from TemplateFrame import *
from TemplateLibraries import *

class TemplateFrame2(TemplateFrame):
    def __init__(self, engine, *args, **kwds):
        TemplateFrame.__init__(self, *args, **kwds)
        self._engine = engine
        
        self.Bind(wx.EVT_CLOSE, self.OnExit)
        
    def OnExit(self, event):
        self._engine.change_state()
                                  
class TemplateState:
    def __init__(self, engine, *args, **kwds):
        self._engine = engine
        self._app = self._engine._app
        self._config = self._engine._config
        
        self._frame = self._engine._frame
        self._panel = self._frame._panel
    
    def __name__(self):
        return 'TemplateState'
        
    def start(self):
        print 'State Machine: TemplateState Start'
        self._frame.Maximize(True)
        self._frame.Show()
        
    def stop(self):
        print 'State Machine: TemplateState Stop'


9fc517d984227c97356a2f9ac5150f0d9455a959
from TemplateFrame import *
from TemplateLibraries import *

class TemplateFrame2(TemplateFrame):
    def __init__(self, engine, *args, **kwds):
        TemplateFrame.__init__(self, *args, **kwds)
        self._engine = engine
        
        self.Bind(wx.EVT_CLOSE, self.OnExit)
        
    def OnExit(self, event):
        self._engine.change_state()
                                  
class TemplateState:
    def __init__(self, engine, *args, **kwds):
        self._engine = engine
        self._app = self._engine._app
        self._config = self._engine._config
        
        self._frame = self._engine._frame
        self._panel = self._frame._panel
    
    def __name__(self):
        return 'TemplateState'
        
    def start(self):
        print 'State Machine: TemplateState Start'
        self._frame.Maximize(True)
        self._frame.Show()
        
    def stop(self):
        print 'State Machine: TemplateState Stop'

