Пример #1
0
if __name__ == '__main__':
    from designer.app import DesignerApp
    from kivy.resources import resource_add_path
    import os.path
    data = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data')
    resource_add_path(data)
    DesignerApp().run()
Пример #2
0
 def test_designer_app(self):
     from designer.app import DesignerApp
     d = DesignerApp()
     d.bind(started=partial(d.stop))
     d.run()
Пример #3
0
def main():
    data = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data')
    if isinstance(data, bytes):
        data = data.decode(get_fs_encoding())
    resource_add_path(data)
    DesignerApp().run()
Пример #4
0
 def test_designer_app(self):
     from designer.app import DesignerApp
     d = DesignerApp()
     d.bind(started=partial(d.stop))
     d.run()