[pygobject] [gtk-demo] small formatting fixes



commit ecd1eb00b19733da3f2e3d7935792378f34cab19
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Fri Aug 19 18:31:20 2011 +0200

    [gtk-demo] small formatting fixes

 demos/gtk-demo/demos/Entry/entry_buffer.py       |    1 +
 demos/gtk-demo/demos/Entry/entry_completion.py   |    1 +
 demos/gtk-demo/demos/Icon View/iconviewbasics.py |    8 ++++----
 demos/gtk-demo/demos/assistant.py                |    1 +
 demos/gtk-demo/demos/builder.py                  |    4 +++-
 demos/gtk-demo/demos/button_box.py               |    1 +
 demos/gtk-demo/demos/clipboard.py                |    1 +
 demos/gtk-demo/demos/colorselector.py            |    1 +
 demos/gtk-demo/demos/combobox.py                 |    1 +
 demos/gtk-demo/demos/drawingarea.py              |    4 +++-
 demos/gtk-demo/demos/test.py                     |    2 ++
 11 files changed, 19 insertions(+), 6 deletions(-)
---
diff --git a/demos/gtk-demo/demos/Entry/entry_buffer.py b/demos/gtk-demo/demos/Entry/entry_buffer.py
index 01f4697..cf4dfe1 100644
--- a/demos/gtk-demo/demos/Entry/entry_buffer.py
+++ b/demos/gtk-demo/demos/Entry/entry_buffer.py
@@ -27,6 +27,7 @@ Gtk.EntryBuffer provides the text content in a Gtk.Entry.
 
 from gi.repository import Gtk
 
+
 class EntryBufferApp:
     def __init__(self):
         self.window = Gtk.Dialog('Gtk.EntryBuffer',
diff --git a/demos/gtk-demo/demos/Entry/entry_completion.py b/demos/gtk-demo/demos/Entry/entry_completion.py
index 0af37d2..abed962 100644
--- a/demos/gtk-demo/demos/Entry/entry_completion.py
+++ b/demos/gtk-demo/demos/Entry/entry_completion.py
@@ -28,6 +28,7 @@ completion in Gtk.Entry.
 
 from gi.repository import Gtk
 
+
 class EntryBufferApp:
     def __init__(self):
         self.window = Gtk.Dialog('Gtk.EntryCompletion',
diff --git a/demos/gtk-demo/demos/Icon View/iconviewbasics.py b/demos/gtk-demo/demos/Icon View/iconviewbasics.py
index 0e585cb..9bcff87 100644
--- a/demos/gtk-demo/demos/Icon View/iconviewbasics.py	
+++ b/demos/gtk-demo/demos/Icon View/iconviewbasics.py	
@@ -100,12 +100,12 @@ class IconViewApp:
         self.window.show_all()
 
     def sort_func(self, store, a_iter, b_iter, user_data):
-        (a_name, a_is_dir) = store.get(a_iter, 
-                                       self.COL_DISPLAY_NAME, 
+        (a_name, a_is_dir) = store.get(a_iter,
+                                       self.COL_DISPLAY_NAME,
                                        self.COL_IS_DIRECTORY)
 
-        (b_name, b_is_dir) = store.get(b_iter, 
-                                       self.COL_DISPLAY_NAME, 
+        (b_name, b_is_dir) = store.get(b_iter,
+                                       self.COL_DISPLAY_NAME,
                                        self.COL_IS_DIRECTORY)
 
         if a_name is None:
diff --git a/demos/gtk-demo/demos/assistant.py b/demos/gtk-demo/demos/assistant.py
index d358a0e..84cedef 100644
--- a/demos/gtk-demo/demos/assistant.py
+++ b/demos/gtk-demo/demos/assistant.py
@@ -29,6 +29,7 @@ through these steps.
 
 from gi.repository import Gtk, GdkPixbuf
 
+
 class AssistantApp:
     def __init__(self):
         self.assistant = Gtk.Assistant()
diff --git a/demos/gtk-demo/demos/builder.py b/demos/gtk-demo/demos/builder.py
index efb82b2..4f07bbb 100644
--- a/demos/gtk-demo/demos/builder.py
+++ b/demos/gtk-demo/demos/builder.py
@@ -25,9 +25,11 @@ Demonstrates an interface loaded from a XML description.
 """
 
 
-from gi.repository import Gtk, GdkPixbuf, Gdk
 import os
 
+from gi.repository import Gtk, GdkPixbuf, Gdk
+
+
 class BuilderApp:
     def __init__(self, demoapp):
         self.demoapp = demoapp
diff --git a/demos/gtk-demo/demos/button_box.py b/demos/gtk-demo/demos/button_box.py
index dd5b102..f13f799 100644
--- a/demos/gtk-demo/demos/button_box.py
+++ b/demos/gtk-demo/demos/button_box.py
@@ -27,6 +27,7 @@ The Button Box widgets are used to arrange buttons with padding.
 
 from gi.repository import Gtk
 
+
 class ButtonBoxApp:
     def __init__(self):
         window = Gtk.Window()
diff --git a/demos/gtk-demo/demos/clipboard.py b/demos/gtk-demo/demos/clipboard.py
index f3462d3..315bbe0 100644
--- a/demos/gtk-demo/demos/clipboard.py
+++ b/demos/gtk-demo/demos/clipboard.py
@@ -33,6 +33,7 @@ manager to run.
 
 from gi.repository import Gtk, Gdk
 
+
 class ClipboardApp:
     def __init__(self):
         self.window = Gtk.Window()
diff --git a/demos/gtk-demo/demos/colorselector.py b/demos/gtk-demo/demos/colorselector.py
index b728992..c4d3b5f 100644
--- a/demos/gtk-demo/demos/colorselector.py
+++ b/demos/gtk-demo/demos/colorselector.py
@@ -28,6 +28,7 @@ description = """
 
 from gi.repository import Gtk, Gdk
 
+
 class ColorSelectorApp:
     def __init__(self):
         # FIXME: we should allow Gdk.Color to be allocated without parameters
diff --git a/demos/gtk-demo/demos/combobox.py b/demos/gtk-demo/demos/combobox.py
index f27ca4e..1e54ef0 100644
--- a/demos/gtk-demo/demos/combobox.py
+++ b/demos/gtk-demo/demos/combobox.py
@@ -31,6 +31,7 @@ How the options are displayed is controlled by cell renderers.
 
 from gi.repository import Gtk, Gdk, GdkPixbuf, GLib, GObject
 
+
 (PIXBUF_COL,
  TEXT_COL) = range(2)
 
diff --git a/demos/gtk-demo/demos/drawingarea.py b/demos/gtk-demo/demos/drawingarea.py
index 00e4ddc..8d7cb51 100644
--- a/demos/gtk-demo/demos/drawingarea.py
+++ b/demos/gtk-demo/demos/drawingarea.py
@@ -35,9 +35,11 @@ to clear the area.
 """
 
 
-from gi.repository import Gtk, Gdk
 import cairo
 
+from gi.repository import Gtk, Gdk
+
+
 class DrawingAreaApp:
     def __init__(self):
         self.sureface = None
diff --git a/demos/gtk-demo/demos/test.py b/demos/gtk-demo/demos/test.py
index d32270a..202546a 100644
--- a/demos/gtk-demo/demos/test.py
+++ b/demos/gtk-demo/demos/test.py
@@ -1,8 +1,10 @@
 title = "Test Demo"
 description = "Dude this is a test"
 
+
 from gi.repository import Gtk
 
+
 def _quit(*args):
     Gtk.main_quit()
 



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