diff --git a/grzegorz_clients/__init__.py b/grzegorz_clients/__init__.py index 2ebbd0c..b75c523 100644 --- a/grzegorz_clients/__init__.py +++ b/grzegorz_clients/__init__.py @@ -1,2 +1,2 @@ from . import api -from . import gui +from . import remi_ui diff --git a/grzegorz_clients/gui.py b/grzegorz_clients/remi_ui.py similarity index 98% rename from grzegorz_clients/gui.py rename to grzegorz_clients/remi_ui.py index 75b962b..f6723b1 100644 --- a/grzegorz_clients/gui.py +++ b/grzegorz_clients/remi_ui.py @@ -10,10 +10,10 @@ COLOR_BLUE = "rgb(33, 150, 243)" COLOR_BLUE_SHADOW = "rgba(33, 150, 243, 0.75)" WIDTH = 512 -class MyApp(App): +class RemiApp(App): def __init__(self, *args): res_path = os.path.join(os.path.dirname(__file__), 'res') - super(MyApp, self).__init__(*args, static_file_path=res_path) + super(RemiApp, self).__init__(*args, static_file_path=res_path) def main(self): container = gui.VBox(width=WIDTH) diff --git a/main.py b/main.py index 4b18a89..4fe2102 100755 --- a/main.py +++ b/main.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import os from remi import start -from grzegorz_clients import api, gui +from grzegorz_clients import api, remi_ui # config must be a object with the attributes seen in default_config.py: @@ -20,7 +20,7 @@ def main(config): # start the webserver: api.set_endpoint(config.api_base) start( - gui.MyApp, + remi_ui.RemiApp, title = "Gregorz", **start_kwargs )