From 5a6c5093a39ff981083b1dd60ae20f0dc026844d Mon Sep 17 00:00:00 2001 From: Jeena Date: Sun, 4 Nov 2012 18:44:27 +0100 Subject: [PATCH] Linux init --- Linux/PreferencesWindow.py | 15 +++++++ Linux/PreferencesWindow.pyc | Bin 0 -> 1008 bytes Linux/Tentia.glade | 80 ++++++++++++++++++++++++++++++++++++ Linux/Tentia.py | 20 +++++++++ 4 files changed, 115 insertions(+) create mode 100644 Linux/PreferencesWindow.py create mode 100644 Linux/PreferencesWindow.pyc create mode 100644 Linux/Tentia.glade create mode 100755 Linux/Tentia.py diff --git a/Linux/PreferencesWindow.py b/Linux/PreferencesWindow.py new file mode 100644 index 0000000..bf628bd --- /dev/null +++ b/Linux/PreferencesWindow.py @@ -0,0 +1,15 @@ +from gi.repository import Gtk + +class PreferencesWindow(Gtk.Window): + + def __init__(self, app): + + self.app = app + Gtk.Window.__init__(self, title="Preferences") + + self.login_button = Gtk.Button(label="Login") + self.login_button.connect("clicked", self.on_login_button_clicked) + self.add(self.login_button) + + def on_login_button_clicked(self, widget): + print "Login" \ No newline at end of file diff --git a/Linux/PreferencesWindow.pyc b/Linux/PreferencesWindow.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b06a4fb3b3528c56c6bc1f297ba555b9d24ddfd9 GIT binary patch literal 1008 zcmb_a!EVz)5S_J?G$|CyfgH|wZWT&b0rot@d4H}fXxuY>*XKYz?>+I=a`caZQ3O5>-fC0Z$(D^fZkqo_$} zp-886OVkm4o~NV-be;{7VSnSx6fBlXr+mrJaLzVnVK&CqCVa9^`>Q)Vd3pi~FQE(x z3{X*do(Q%WDHZ2gf^aQLWB_>&316UY6x|S&K#Z+5sa%nYW;>;ncn8ugdhAHa)1ka* zhSZEm_x2ujNsKk)U96LF2~&*#F=d&JEw_dr!MZn2jI`B-X`^-Km)7wf-qfwFFOAM7 zk||tN>ve&HSSt1`@EB%UT4%W|qyJ>f>>WRbzm-zuMem3ey>q5!eu1EO<^6cML+gRG zj&!lm6imA)Bs+ujD!hi3fAuSqH^#UspKW}D!Xf`?9NQ{Cvu^th-hXy>yuL1E8sQ@B zLs2qON6B+_r0zB&>x`R`hgibthe)Ch($ literal 0 HcmV?d00001 diff --git a/Linux/Tentia.glade b/Linux/Tentia.glade new file mode 100644 index 0000000..e4233f8 --- /dev/null +++ b/Linux/Tentia.glade @@ -0,0 +1,80 @@ + + + + + 300 + 193 + False + Preferences + False + center + notification + True + True + False + perferences + + + True + False + 488 + 270 + + + 100 + 100 + True + False + Icon.png + + + 18 + 24 + + + + + 159 + 21 + True + False + Add you entity to log in: + + + 142 + 25 + + + + + 366 + 31 + True + True + + https://example.tent.is + url + + + 141 + 53 + + + + + button + 100 + 30 + True + True + True + + + 404 + 92 + + + + + + diff --git a/Linux/Tentia.py b/Linux/Tentia.py new file mode 100755 index 0000000..2364c28 --- /dev/null +++ b/Linux/Tentia.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python +from gi.repository import Gtk +import PreferencesWindow + +class Tentia: + + def __init__(self): + self.setup_preferences_window() + self.preferences_window.show_all() + Gtk.main() + + def quit(self): + Gtk.main_quit + + def setup_preferences_window(self): + self.preferences_window = PreferencesWindow(self) + + +if __name__ == "__main__": + Tentia() \ No newline at end of file