Move gui.py to remi_ui.py and rename class App to RemiApp

This commit is contained in:
Peder Bergebakken Sundt 2018-03-04 04:02:49 +01:00
parent 9fe1956508
commit 68f6f8a75b
3 changed files with 5 additions and 5 deletions

View File

@ -1,2 +1,2 @@
from . import api
from . import gui
from . import remi_ui

View File

@ -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)

View File

@ -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
)