Ejemplo n.º 1
0
class Ekrano():
  """ Entry point class. """

  def __init__(self):
    self.settings = Settings()
    self.pre_started = Event()
    self.started = Event()

  def start(self):
    self.settings.load()
    self.load_plugins()
    self.pre_started.dispatch()
    self.app = Application(self)
    self.app.run(sys.argv)
    self.started.dispatch()

  def load_plugins(self):
    # To be developed...
    self.__plugins = {}
    pass

  def unload_plugins(self):
    for name, instance in self.__plugins.items():
      instance.unload()
Ejemplo n.º 2
0
 def __init__(self):
   self.settings = Settings()
   self.pre_started = Event()
   self.started = Event()