From 3649268f01e9f07aa00f90d5436f5efeb603b1d4 Mon Sep 17 00:00:00 2001 From: brent s Date: Sun, 3 Nov 2019 01:36:08 -0400 Subject: [PATCH] gorram it. kivy's kind of overkill, using tkinter --- confgen.py | 32 ++++++++++++++++++++++++++++++++ docs/TODO | 16 ++++++++++++++++ meta.py | 0 storage/__init__.py | 6 ++++++ storage/block.py | 0 storage/filesystem.py | 0 storage/luks.py | 0 storage/lvm.py | 0 storage/mdadm.py | 0 storage/mount.py | 0 10 files changed, 54 insertions(+) create mode 100755 confgen.py create mode 100644 docs/TODO create mode 100644 meta.py create mode 100644 storage/__init__.py create mode 100644 storage/block.py create mode 100644 storage/filesystem.py create mode 100644 storage/luks.py create mode 100644 storage/lvm.py create mode 100644 storage/mdadm.py create mode 100644 storage/mount.py diff --git a/confgen.py b/confgen.py new file mode 100755 index 0000000..7a5804b --- /dev/null +++ b/confgen.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python3 + +from kivy.app import App +from kivy.uix.dropdown import DropDown +from kivy.uix.boxlayout import BoxLayout +from kivy.uix.button import Button +from kivy.uix.label import Label +from kivy.uix.popup import Popup +from kivy.uix.screenmanager import ScreenManager, Screen +from kivy.uix.textinput import TextInput + + +sm = ScreenManager() + + +class MainScreen(Screen): + name = 'foo' + l = Button() + +class MainWindow(BoxLayout): + def on_enter(self, *args): + pass + + +class MyApp(App): + def build(self): + sm.add_widget(MainScreen) + return(MainWindow()) + + +if __name__ == '__main__': + MyApp().run() diff --git a/docs/TODO b/docs/TODO new file mode 100644 index 0000000..f61a240 --- /dev/null +++ b/docs/TODO @@ -0,0 +1,16 @@ +https://kivy.org/doc/stable/api-kivy.uix.screenmanager.html +https://kivy.org/doc/stable/api-kivy.uix.popup.html +https://kivy.org/doc/stable/api-kivy.uix.dropdown.html +https://stackoverflow.com/questions/44770222/kivy-with-menubar +https://www.geeksforgeeks.org/python-window-size-adjustment-in-kivy/ +https://stackoverflow.com/questions/26314466/get-textinput-value-in-kivy-app +https://github.com/techwithtim/Kivy-GUI-Example/blob/master/main.py#L3 +https://techwithtim.net/tutorials/kivy-tutorial/example-gui/ +https://kivy.org/doc/stable/api-kivy.uix.textinput.html +https://stackoverflow.com/questions/15689555/how-to-create-simple-kivy-app-form-with-field-name +https://github.com/kivy/kivy/wiki +https://kivy.org/doc/stable/api-kivy.html +https://kivy.org/doc/stable/guide/basic.html#quickstart +https://kivy.org/doc/stable/tutorials/firstwidget.html +https://kivy.org/doc/stable/tutorials/pong.html +https://kivy.org/doc/stable/gettingstarted/first_app.html diff --git a/meta.py b/meta.py new file mode 100644 index 0000000..e69de29 diff --git a/storage/__init__.py b/storage/__init__.py new file mode 100644 index 0000000..38dc252 --- /dev/null +++ b/storage/__init__.py @@ -0,0 +1,6 @@ +from kivy.uix.screenmanager import ScreenManager, Screen + + +class Storage(Screen): + def __init__(self): + pass diff --git a/storage/block.py b/storage/block.py new file mode 100644 index 0000000..e69de29 diff --git a/storage/filesystem.py b/storage/filesystem.py new file mode 100644 index 0000000..e69de29 diff --git a/storage/luks.py b/storage/luks.py new file mode 100644 index 0000000..e69de29 diff --git a/storage/lvm.py b/storage/lvm.py new file mode 100644 index 0000000..e69de29 diff --git a/storage/mdadm.py b/storage/mdadm.py new file mode 100644 index 0000000..e69de29 diff --git a/storage/mount.py b/storage/mount.py new file mode 100644 index 0000000..e69de29