[gtk-mac-integration] [Introspection] Fix up the test-introspection example so that it works.
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-mac-integration] [Introspection] Fix up the test-introspection example so that it works.
- Date: Thu, 29 Dec 2011 23:36:42 +0000 (UTC)
commit ec06f8773c5947ff6d780e051a6101a52649dddb
Author: John Ralls <jralls ceridwen us>
Date: Fri Nov 25 17:07:11 2011 -0800
[Introspection] Fix up the test-introspection example so that it works.
bindings/python/test-introspection.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/bindings/python/test-introspection.py b/bindings/python/test-introspection.py
index 666812d..6809d6e 100755
--- a/bindings/python/test-introspection.py
+++ b/bindings/python/test-introspection.py
@@ -2,7 +2,7 @@
from gi.repository import Gtk
from gi.repository import GObject
-from gtk_osxapplication import *
+from gi.repository import GtkosxApplication
class MainWindow(Gtk.Window):
def __init__(self, macapp):
@@ -76,11 +76,11 @@ class MainWindow(Gtk.Window):
print widget
if __name__ == '__main__':
- macapp = OSXApplication()
+ macapp = GtkosxApplication.Application()
window = MainWindow(macapp)
window.connect("destroy", Gtk.main_quit)
macapp.ready()
-# window.show()
-
+#Just to illustrate using the qtkosx_application_get... functions
+ print macapp.get_resource_path()
Gtk.main()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]