pybank r91 - trunk
- From: marklee svn gnome org
- To: svn-commits-list gnome org
- Subject: pybank r91 - trunk
- Date: Tue, 24 Mar 2009 03:17:36 +0000 (UTC)
Author: marklee
Date: Tue Mar 24 03:17:35 2009
New Revision: 91
URL: http://svn.gnome.org/viewvc/pybank?rev=91&view=rev
Log:
Make the WebKit example app run again.
* webkittest.py: Make sure threads are started and the app quits when
the window is closed.
Modified:
trunk/ChangeLog
trunk/webkittest.py
Modified: trunk/webkittest.py
==============================================================================
--- trunk/webkittest.py (original)
+++ trunk/webkittest.py Tue Mar 24 03:17:35 2009
@@ -1,9 +1,13 @@
import bank
+import GLib
import Gtk
import WebKit
+GLib.thread_init(None)
+
win = Gtk.Window(Gtk.WindowType.TOPLEVEL)
+win.connect('delete-event', lambda *args: Gtk.main_quit())
sw = Gtk.ScrolledWindow(None, None)
win.add(sw)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]