From 0ac77f238f4f7890bebf8e7fa98a503ef01da1f1 Mon Sep 17 00:00:00 2001 From: janis Date: Sat, 26 Feb 2022 17:00:59 +0100 Subject: [PATCH] Initial GUI-Development progress - 2022-02-26-17:00 --- gui_main/configurator.kv | 14 ++++++++++---- gui_main/main-gui.kv | 3 ++- gui_main/settings.kv | 0 simplePCBuilding-PC-Configurator-alpha1.py | 3 +-- 4 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 gui_main/settings.kv diff --git a/gui_main/configurator.kv b/gui_main/configurator.kv index 685d6a7..3d4ebfb 100644 --- a/gui_main/configurator.kv +++ b/gui_main/configurator.kv @@ -1,16 +1,22 @@ MDScreen: name: "Config" - md_bg_color: (0,0,1,0.5) + md_bg_color: (0,0,1,0.3) MDFloatLayout: cols:1 MDFlatButton: text: "Back" - pos_hint: {"x": 0.15, "y": 0.1} + pos_hint: {"x": 0.07, "y": 0.07} font_size: 20 md_bg_color: (0, 0, 0, 1) size_hint: 0.1, 0.05 on_release: app.root.current = "HomeScreen" root.manager.transition.direction = "left" - MDFlatButton: - text: "Test" \ No newline at end of file + MDTextField: + hint_text: "Test" + id: test + size_hint: 0.2, 0.1 + pos_hint: {"x": 0.4, "y": 0.2} + MDCheckbox: + size_hint: 0.05, 0.05 + size: "24dp", "24dp" \ No newline at end of file diff --git a/gui_main/main-gui.kv b/gui_main/main-gui.kv index 763b249..68d4767 100644 --- a/gui_main/main-gui.kv +++ b/gui_main/main-gui.kv @@ -25,7 +25,8 @@ Home: text: "Settings" background_color: (0.1, 0.1, 1, 0.5) on_release: - root.test() + app.root.current = "Settings" + root.manager.transition.direction = "up" Button: text: "Quit" background_color: (0.1, 0.1, 1, 0.5) diff --git a/gui_main/settings.kv b/gui_main/settings.kv new file mode 100644 index 0000000..e69de29 diff --git a/simplePCBuilding-PC-Configurator-alpha1.py b/simplePCBuilding-PC-Configurator-alpha1.py index 26f96ab..541f517 100644 --- a/simplePCBuilding-PC-Configurator-alpha1.py +++ b/simplePCBuilding-PC-Configurator-alpha1.py @@ -24,8 +24,7 @@ class Splash(MDScreen): class Home(MDScreen): - def test(self): - print("class") + pass class ConfigureScreen(MDScreen):