From 0d14a64482ecaf65ba485c0f7e5a8e8a28cc6603 Mon Sep 17 00:00:00 2001 From: luxick Date: Thu, 22 Feb 2018 00:11:01 +0100 Subject: [PATCH] Add GTK UI Skeleton. --- dsst/dsst_gtk3/__init__.py | 0 dsst/dsst_gtk3/gtk_ui.py | 16 + dsst/dsst_gtk3/resources/glade/window.glade | 384 ++++++++++++++++++++ 3 files changed, 400 insertions(+) create mode 100644 dsst/dsst_gtk3/__init__.py create mode 100644 dsst/dsst_gtk3/gtk_ui.py create mode 100644 dsst/dsst_gtk3/resources/glade/window.glade diff --git a/dsst/dsst_gtk3/__init__.py b/dsst/dsst_gtk3/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/dsst/dsst_gtk3/gtk_ui.py b/dsst/dsst_gtk3/gtk_ui.py new file mode 100644 index 0000000..8a4b9c8 --- /dev/null +++ b/dsst/dsst_gtk3/gtk_ui.py @@ -0,0 +1,16 @@ +import gi +import os + +gi.require_version('Gtk', '3.0') +from gi.repository import Gtk + + +class DSSTGtkUi: + def __init__(self): + self.ui = Gtk.Builder() + self.ui.add_from_file(os.path.join(os.path.dirname(__file__), 'resources', 'glade', 'window.glade')) + self.ui.get_object('main_window').show_all() + +if __name__ == '__main__': + DSSTGtkUi() + Gtk.main() diff --git a/dsst/dsst_gtk3/resources/glade/window.glade b/dsst/dsst_gtk3/resources/glade/window.glade new file mode 100644 index 0000000..391b040 --- /dev/null +++ b/dsst/dsst_gtk3/resources/glade/window.glade @@ -0,0 +1,384 @@ + + + + + + + + + + + + + + + + + + + + + + + + + False + Drunk Souls Stat Tool + 1200 + 700 + + + True + True + True + + + 150 + True + False + vertical + 5 + + + True + False + 5 + 5 + 5 + 5 + Select Season + 0 + + + False + True + 0 + + + + + True + False + seasons_store + 1 + + + False + True + 1 + + + + + True + False + 5 + 5 + 5 + 5 + Episodes + 0 + + + False + True + 2 + + + + + True + True + episodes_store + + + + + + autosize + Episode + + + + 1 + + + + + + + True + True + 3 + + + + + False + True + + + + + True + True + + + True + True + True + True + + + True + False + vertical + + + + + + + + True + False + Stats + + + False + + + + + True + False + vertical + + + + + + 1 + + + + + True + False + Deaths + + + 1 + False + + + + + True + False + vertical + + + + + + 2 + + + + + True + False + Victories + + + 2 + False + + + + + True + True + + + + + True + False + True + True + vertical + + + True + False + 5 + 5 + 5 + 5 + Players + 0 + + + False + True + 0 + + + + + True + True + True + player_store + + + + + + Name + + + + 0 + + + + + + + Hex ID + + + + 1 + + + + + + + False + True + 1 + + + + + True + False + 5 + 5 + 5 + 5 + Drinks + 0 + + + False + True + 2 + + + + + True + True + True + drink_store + + + + + + Name + + + + 0 + + + + + + + Vol. + + + + 1 + + + + + + + False + True + 3 + + + + + True + False + 5 + 5 + 5 + 5 + Enemies + 0 + + + False + True + 4 + + + + + True + True + True + enemy_store + + + + + + Name + + + + 0 + + + + + + + False + True + 5 + + + + + True + True + + + + + True + True + + + + + + + + +