changed names
This commit is contained in:
parent
5a6c5093a3
commit
a35d296648
3 changed files with 44 additions and 3 deletions
Binary file not shown.
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
import PreferencesWindow
|
import TentiaWindows
|
||||||
|
|
||||||
class Tentia:
|
class Tentia:
|
||||||
|
|
||||||
|
@ -10,10 +10,10 @@ class Tentia:
|
||||||
Gtk.main()
|
Gtk.main()
|
||||||
|
|
||||||
def quit(self):
|
def quit(self):
|
||||||
Gtk.main_quit
|
Gtk.main_quit()
|
||||||
|
|
||||||
def setup_preferences_window(self):
|
def setup_preferences_window(self):
|
||||||
self.preferences_window = PreferencesWindow(self)
|
self.preferences_window = TentiaWindows.Preferences(self)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
41
Linux/TentiaWindows.py
Normal file
41
Linux/TentiaWindows.py
Normal file
|
@ -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)
|
Reference in a new issue