diff --git a/Gui test/gtk3_glade_test.py b/Gui test/gtk3_glade_test.py new file mode 100644 index 0000000..fad456f --- /dev/null +++ b/Gui test/gtk3_glade_test.py @@ -0,0 +1,21 @@ +import gi +gi.require_version('Gtk', '3.0') +from gi.repository import Gtk + +class Handler: + def onDeleteWindow(self, *args): + Gtk.main_quit(*args) + + def onButtonPressed(self, button): + print("Hello World!") + +builder = Gtk.Builder() +builder.add_from_file("h2inc.glade") +builder.connect_signals(Handler()) + +window = builder.get_object("window1") +window.connect('delete-event', Gtk.main_quit) +window.show_all() + +Gtk.main() + diff --git a/Gui test/h2inc (copy).xml b/Gui test/h2inc (copy).xml new file mode 100644 index 0000000..4702fd7 --- /dev/null +++ b/Gui test/h2inc (copy).xml @@ -0,0 +1,393 @@ + + + + + + False + normal + select-folder + + + False + vertical + 2 + + + False + end + + + + + + + + + False + False + 0 + + + + + + + + + + False + 5 + 5 + 5 + 5 + + + True + False + + + True + False + 0 + etched-out + + + True + False + 12 + + + True + False + + + True + False + end + 5 + 5 + 5 + True + Source: + right + + + 0 + 0 + 2 + + + + + True + True + 5 + 5 + 5 + 5 + Select source directory! + + + 2 + 0 + 2 + + + + + Source directory... + True + True + True + start + 5 + 5 + 5 + 5 + + + 4 + 0 + 2 + + + + + True + False + False + end + 5 + 5 + 5 + True + Destination: + right + start + 2.2351741811588166e-10 + + + 0 + 1 + 2 + + + + + True + False + True + 5 + 5 + 5 + 5 + Select destination directory! + + + 2 + 1 + 2 + + + + + Destination directory... + True + False + True + True + start + 5 + 5 + 5 + 5 + + + 4 + 1 + 2 + + + + + Create "include" folder if it does not exist. + True + False + True + False + 5 + 5 + 0 + True + + + 0 + 2 + 6 + + + + + + + + + True + False + Select folders + + + + + 0 + 0 + 5 + + + + + True + False + False + 5 + 5 + 0 + etched-out + + + True + False + 12 + + + True + False + + + True + False + 5 + 5 + True + 0 + etched-out + + + True + False + 12 + + + True + False + vertical + + + True + False + start + 5 + 5 + True + Number of folders: 0 + + + False + True + 0 + + + + + True + False + start + 5 + 5 + Number of files: 0 + + + False + True + 1 + + + + + + + + + True + False + Source information + + + + + 0 + 0 + + + + + Translate! + True + True + True + start + 5 + 5 + + + 0 + 1 + + + + + True + False + 5 + 5 + 5 + 0 + etched-out + + + True + False + 12 + + + True + False + vertical + + + True + False + start + 5 + 5 + Total progress: + + + False + True + 0 + + + + + True + False + 5 + 5 + 5 + + + False + True + 1 + + + + + + + + + True + False + Progress + + + + + 0 + 2 + + + + + + + + + True + False + Translation + + + + + 0 + 1 + 5 + + + + + + diff --git a/Gui test/h2inc.glade b/Gui test/h2inc.glade new file mode 100644 index 0000000..ad6a6e9 --- /dev/null +++ b/Gui test/h2inc.glade @@ -0,0 +1,367 @@ + + + + + + False + 5 + 5 + 5 + 5 + + + True + False + 5 + 5 + 5 + 5 + True + True + + + True + False + 0 + etched-out + + + True + False + 12 + + + True + False + + + True + False + end + 5 + 5 + 5 + True + Source: + right + + + 0 + 0 + 2 + + + + + True + True + 5 + 5 + 5 + 5 + Select source directory! + + + 2 + 0 + 2 + + + + + Source directory... + True + True + True + start + 5 + 5 + 5 + 5 + + + 4 + 0 + 2 + + + + + True + False + False + end + 5 + 5 + 5 + True + Destination: + right + start + 2.2351741811588166e-10 + + + 0 + 1 + 2 + + + + + True + False + True + 5 + 5 + 5 + 5 + Select destination directory! + + + 2 + 1 + 2 + + + + + Destination directory... + True + False + True + True + start + 5 + 5 + 5 + 5 + + + 4 + 1 + 2 + + + + + Create "include" folder if it does not exist. + True + False + True + False + 5 + 5 + 0 + True + + + 0 + 2 + 6 + + + + + + + + + True + False + Select folders + + + + + 0 + 0 + 5 + + + + + True + False + False + 5 + 5 + 0 + etched-out + + + True + False + 12 + + + True + False + + + True + False + 5 + 5 + True + 0 + etched-out + + + True + False + 12 + + + True + False + vertical + + + True + False + start + 5 + 5 + True + Number of folders: 0 + + + False + True + 0 + + + + + True + False + start + 5 + 5 + Number of files: 0 + + + False + True + 1 + + + + + + + + + True + False + Source information + + + + + 0 + 0 + + + + + Translate! + True + True + True + start + 5 + 5 + + + 0 + 1 + + + + + True + False + 5 + 5 + 5 + 0 + etched-out + + + True + False + 12 + + + True + False + vertical + + + True + False + start + 5 + 5 + Total progress: + + + False + True + 0 + + + + + True + False + 5 + 5 + 5 + + + False + True + 1 + + + + + + + + + True + False + Progress + + + + + 0 + 2 + + + + + + + + + True + False + Translation + + + + + 0 + 1 + 5 + + + + + + diff --git a/Gui test/h2inc.glade~ b/Gui test/h2inc.glade~ new file mode 100644 index 0000000..ad6a6e9 --- /dev/null +++ b/Gui test/h2inc.glade~ @@ -0,0 +1,367 @@ + + + + + + False + 5 + 5 + 5 + 5 + + + True + False + 5 + 5 + 5 + 5 + True + True + + + True + False + 0 + etched-out + + + True + False + 12 + + + True + False + + + True + False + end + 5 + 5 + 5 + True + Source: + right + + + 0 + 0 + 2 + + + + + True + True + 5 + 5 + 5 + 5 + Select source directory! + + + 2 + 0 + 2 + + + + + Source directory... + True + True + True + start + 5 + 5 + 5 + 5 + + + 4 + 0 + 2 + + + + + True + False + False + end + 5 + 5 + 5 + True + Destination: + right + start + 2.2351741811588166e-10 + + + 0 + 1 + 2 + + + + + True + False + True + 5 + 5 + 5 + 5 + Select destination directory! + + + 2 + 1 + 2 + + + + + Destination directory... + True + False + True + True + start + 5 + 5 + 5 + 5 + + + 4 + 1 + 2 + + + + + Create "include" folder if it does not exist. + True + False + True + False + 5 + 5 + 0 + True + + + 0 + 2 + 6 + + + + + + + + + True + False + Select folders + + + + + 0 + 0 + 5 + + + + + True + False + False + 5 + 5 + 0 + etched-out + + + True + False + 12 + + + True + False + + + True + False + 5 + 5 + True + 0 + etched-out + + + True + False + 12 + + + True + False + vertical + + + True + False + start + 5 + 5 + True + Number of folders: 0 + + + False + True + 0 + + + + + True + False + start + 5 + 5 + Number of files: 0 + + + False + True + 1 + + + + + + + + + True + False + Source information + + + + + 0 + 0 + + + + + Translate! + True + True + True + start + 5 + 5 + + + 0 + 1 + + + + + True + False + 5 + 5 + 5 + 0 + etched-out + + + True + False + 12 + + + True + False + vertical + + + True + False + start + 5 + 5 + Total progress: + + + False + True + 0 + + + + + True + False + 5 + 5 + 5 + + + False + True + 1 + + + + + + + + + True + False + Progress + + + + + 0 + 2 + + + + + + + + + True + False + Translation + + + + + 0 + 1 + 5 + + + + + + diff --git a/h2inc.glade b/h2inc.glade index 4702fd7..ad6a6e9 100644 --- a/h2inc.glade +++ b/h2inc.glade @@ -2,38 +2,6 @@ - - False - normal - select-folder - - - False - vertical - 2 - - - False - end - - - - - - - - - False - False - 0 - - - - - - - - False 5 @@ -44,6 +12,12 @@ True False + 5 + 5 + 5 + 5 + True + True True diff --git a/h2inc.glade~ b/h2inc.glade~ new file mode 100644 index 0000000..d0e629e --- /dev/null +++ b/h2inc.glade~ @@ -0,0 +1,365 @@ + + + + + + False + 5 + 5 + 5 + 5 + + + True + False + 5 + 5 + 5 + 5 + + + True + False + 0 + etched-out + + + True + False + 12 + + + True + False + + + True + False + end + 5 + 5 + 5 + True + Source: + right + + + 0 + 0 + 2 + + + + + True + True + 5 + 5 + 5 + 5 + Select source directory! + + + 2 + 0 + 2 + + + + + Source directory... + True + True + True + start + 5 + 5 + 5 + 5 + + + 4 + 0 + 2 + + + + + True + False + False + end + 5 + 5 + 5 + True + Destination: + right + start + 2.2351741811588166e-10 + + + 0 + 1 + 2 + + + + + True + False + True + 5 + 5 + 5 + 5 + Select destination directory! + + + 2 + 1 + 2 + + + + + Destination directory... + True + False + True + True + start + 5 + 5 + 5 + 5 + + + 4 + 1 + 2 + + + + + Create "include" folder if it does not exist. + True + False + True + False + 5 + 5 + 0 + True + + + 0 + 2 + 6 + + + + + + + + + True + False + Select folders + + + + + 0 + 0 + 5 + + + + + True + False + False + 5 + 5 + 0 + etched-out + + + True + False + 12 + + + True + False + + + True + False + 5 + 5 + True + 0 + etched-out + + + True + False + 12 + + + True + False + vertical + + + True + False + start + 5 + 5 + True + Number of folders: 0 + + + False + True + 0 + + + + + True + False + start + 5 + 5 + Number of files: 0 + + + False + True + 1 + + + + + + + + + True + False + Source information + + + + + 0 + 0 + + + + + Translate! + True + True + True + start + 5 + 5 + + + 0 + 1 + + + + + True + False + 5 + 5 + 5 + 0 + etched-out + + + True + False + 12 + + + True + False + vertical + + + True + False + start + 5 + 5 + Total progress: + + + False + True + 0 + + + + + True + False + 5 + 5 + 5 + + + False + True + 1 + + + + + + + + + True + False + Progress + + + + + 0 + 2 + + + + + + + + + True + False + Translation + + + + + 0 + 1 + 5 + + + + + +