This repository has been archived on 2025-08-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Bungloo/Linux/TentiaWindows.py
2012-11-04 22:28:03 +01:00

41 lines
898 B
Python

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)