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()
def test_designer_app(self): from designer.app import DesignerApp d = DesignerApp() d.bind(started=partial(d.stop)) d.run()
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()