From a35d2966481f44f16cb21ec1ba0834e6ae2b8e2e Mon Sep 17 00:00:00 2001 From: Jeena Date: Sun, 4 Nov 2012 22:28:03 +0100 Subject: [PATCH] changed names --- Linux/PreferencesWindow.pyc | Bin 1008 -> 0 bytes Linux/Tentia.py | 6 +++--- Linux/TentiaWindows.py | 41 ++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 3 deletions(-) delete mode 100644 Linux/PreferencesWindow.pyc create mode 100644 Linux/TentiaWindows.py diff --git a/Linux/PreferencesWindow.pyc b/Linux/PreferencesWindow.pyc deleted file mode 100644 index b06a4fb3b3528c56c6bc1f297ba555b9d24ddfd9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 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($ diff --git a/Linux/Tentia.py b/Linux/Tentia.py index 2364c28..733304c 100755 --- a/Linux/Tentia.py +++ b/Linux/Tentia.py @@ -1,6 +1,6 @@ #!/usr/bin/env python from gi.repository import Gtk -import PreferencesWindow +import TentiaWindows class Tentia: @@ -10,10 +10,10 @@ class Tentia: Gtk.main() def quit(self): - Gtk.main_quit + Gtk.main_quit() def setup_preferences_window(self): - self.preferences_window = PreferencesWindow(self) + self.preferences_window = TentiaWindows.Preferences(self) if __name__ == "__main__": diff --git a/Linux/TentiaWindows.py b/Linux/TentiaWindows.py new file mode 100644 index 0000000..6a7a62e --- /dev/null +++ b/Linux/TentiaWindows.py @@ -0,0 +1,41 @@ +from gi.repository import Gtk +import webkit + +class Preferences(Gtk.Window): + + def __init__(self, app): + + self.app = app + Gtk.Window.__init__(self, title="Preferences") + self.connect("delete-event", self.quit) + + self.login_button = Gtk.Button(label="Login") + self.login_button.connect("clicked", self.on_login_button_clicked) + self.add(self.login_button) + + def quit(self): + self.hide_all() + self.app.quit(self) + + def on_login_button_clicked(self, widget): + print "Login" + + +class Timeline(Gtk.Window): + + def __init(self, app): + self.app = app + Gtk.Window.__init__(self, title="Tentia") + self.connect("delete-event", self.quit) + self.web_view = webkit.WebView() + + scroller = gtk.StrolledWindow() + self.add(scroller) + scroller.show() + scroller.add(self.web_view) + self.web_view.show() + self.web_view.open("http://google.com") + + def quit(self) + self.hide_all() + self.app.quit(self)