Exemplo n.º 1
0
    def create(self):
        # Connect this app to the PythonActivity
        self._listener = TogaApp(self)

        # Set the Python activity listener to be this app.
        self.native = PythonActivity.setListener(self._listener)

        self.startup()
Exemplo n.º 2
0
Arquivo: app.py Projeto: pybee/toga
    def create(self):
        # Connect this app to the PythonActivity
        self._listener = TogaApp(self)

        # Set the Python activity listener to be this app.
        self.native = PythonActivity.setListener(self._listener)

        self.startup()
Exemplo n.º 3
0
    def _startup(self):
        # Connect this app to the PythonActivity
        self._listener = TogaApp(self)

        # Set the Python activity listener to be this app.
        self._impl = PythonActivity.setListener(self._listener)

        # Call user code to populate the main window
        self.startup()
Exemplo n.º 4
0
 def _startup(self):
     # Connect this app to the PythonActivity
     self._listener = TogaApp(self)
     self._impl = PythonActivity.setApp(self._listener)
     # Call user code to populate the main window
     self.startup()
Exemplo n.º 5
0
    def onStart(self):
        print("Application starting up")

        app = MyApplication()

        activity = PythonActivity.setListener(app)
Exemplo n.º 6
0
 def __init__(self):
     self._activity = PythonActivity.setListener(self)