Move gui.py to remi_ui.py and rename class App to RemiApp
This commit is contained in:
parent
9fe1956508
commit
68f6f8a75b
|
@ -1,2 +1,2 @@
|
|||
from . import api
|
||||
from . import gui
|
||||
from . import remi_ui
|
||||
|
|
|
@ -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)
|
4
main.py
4
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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue