[pygobject] [gtk-demo] fix imports



commit 9fd3986affe11cbc5a816adcccdc56d0592f3618
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Fri Aug 19 09:57:31 2011 +0200

    [gtk-demo] fix imports

 demos/gtk-demo/demos/Icon View/iconviewbasics.py |    6 ++++--
 demos/gtk-demo/demos/appwindow.py                |    9 ++++++---
 demos/gtk-demo/gtk-demo.py                       |    8 ++++----
 3 files changed, 14 insertions(+), 9 deletions(-)
---
diff --git a/demos/gtk-demo/demos/Icon View/iconviewbasics.py b/demos/gtk-demo/demos/Icon View/iconviewbasics.py
index e2cf45c..0e585cb 100644
--- a/demos/gtk-demo/demos/Icon View/iconviewbasics.py	
+++ b/demos/gtk-demo/demos/Icon View/iconviewbasics.py	
@@ -25,9 +25,11 @@ The GtkIconView widget is used to display and manipulate icons. It uses a GtkTre
 We also use the Gio.File API to get the icons for each file type.
  """
 
+
 import os
-from gi.repository import GLib, Gtk, Gio, GdkPixbuf
-import glib
+
+from gi.repository import GLib, Gio, GdkPixbuf, Gtk
+
 
 class IconViewApp:
     (COL_PATH,
diff --git a/demos/gtk-demo/demos/appwindow.py b/demos/gtk-demo/demos/appwindow.py
index fff4a7a..421fdd4 100644
--- a/demos/gtk-demo/demos/appwindow.py
+++ b/demos/gtk-demo/demos/appwindow.py
@@ -27,9 +27,12 @@ Demonstrates a typical application window with menubar, toolbar, statusbar.
 # See FIXME's
 is_fully_bound = False
 
-from gi.repository import Gtk, GdkPixbuf, Gdk
-import sys, os
-import glib
+
+import os
+import sys
+
+from gi.repository import GLib, GdkPixbuf, Gdk, Gtk
+
 
 global infobar
 global window
diff --git a/demos/gtk-demo/gtk-demo.py b/demos/gtk-demo/gtk-demo.py
index 484ed01..51b99a5 100755
--- a/demos/gtk-demo/gtk-demo.py
+++ b/demos/gtk-demo/gtk-demo.py
@@ -20,15 +20,15 @@
 # USA
 
 
-
-import pygtk
-pygtk.require('2.0')
-from gi.repository import Gtk, GLib, GObject, GdkPixbuf, Gio, Pango
 import os
 import glob
 
+from gi.repository import GLib, GObject, Gio, Pango, GdkPixbuf, Gtk
+
+
 _DEMOCODEDIR = os.getcwd()
 
+
 class Demo(GObject.GObject):
     __gtype_name__ = 'GtkDemo'
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]