[pygi] fix up formatting in demos



commit d9968c3a4dea1d4a73a9376009cf486c80ea3da6
Author: John (J5) Palmieri <johnp redhat com>
Date:   Sat Jun 5 23:24:36 2010 -0400

    fix up formatting in demos

 demos/gtk-demo/demos/appwindow.py |   16 ++++++++--------
 demos/gtk-demo/demos/assistant.py |   24 ++++++++++++------------
 demos/gtk-demo/demos/builder.py   |    2 +-
 3 files changed, 21 insertions(+), 21 deletions(-)
---
diff --git a/demos/gtk-demo/demos/appwindow.py b/demos/gtk-demo/demos/appwindow.py
index 6b6d832..822b6a0 100644
--- a/demos/gtk-demo/demos/appwindow.py
+++ b/demos/gtk-demo/demos/appwindow.py
@@ -1,4 +1,4 @@
-#!/bin/env python
+#!/usr/bin/env python
 # -*- Mode: Python; py-indent-offset: 4 -*-
 # vim: tabstop=4 shiftwidth=4 expandtab
 #
@@ -61,7 +61,7 @@ def activate_action(action):
 def activate_radio_action(action, current):
     global infobar
     global messagelabel
- 
+
     name = current.get_name()
     _type = type(current)
     active = current.get_active()
@@ -81,7 +81,7 @@ def update_statusbar(buffer, statusbar):
     row = iter.get_line()
     col = iter.get_line_offset()
     msg = 'Cursor at row %d column %d - %d chars in document' % (row, col, count)
-    
+
     statusbar.push(0, msg)
 
 def mark_set_callback(buffer, new_location, mark, data):
@@ -109,7 +109,7 @@ def about_cb(widget):
     global window
 
     authors = ['John (J5) Palmieri',
-               'Tomeu Vizoso', 
+               'Tomeu Vizoso',
                'and many more...']
 
     documentors =  ['David Malcolm',
@@ -134,7 +134,7 @@ Boston, MA 02111-1307, USA.
 """
     filename = os.path.join('data', 'gtk-logo-rgb.gif')
     pixbuf = GdkPixbuf.Pixbuf.new_from_file(filename)
-    transparent = pixbuf.add_alpha(True, 0xff, 0xff, 0xff) 
+    transparent = pixbuf.add_alpha(True, 0xff, 0xff, 0xff)
     Gtk.AboutDialog.set_email_hook(activate_email, None)
     Gtk.AboutDialog.set_url_hook(activate_url, None)
     # FIXME: override Gtk.show_about_dialog
@@ -152,8 +152,8 @@ Boston, MA 02111-1307, USA.
 
     about.set_transient_for(window)
     about.connect('response', widget_destroy)
-    about.show()  
-    
+    about.show()
+
 
 action_entries = (
     ("FileMenu", None, "_File"),                # name, stock id, label
@@ -317,7 +317,7 @@ class ToolMenuAction(Gtk.Action):
 def main():
     global infobar
     global window
-    global messagelabel 
+    global messagelabel
 
     register_stock_icons()
 
diff --git a/demos/gtk-demo/demos/assistant.py b/demos/gtk-demo/demos/assistant.py
index 0fcf6b1..3d6f1bf 100644
--- a/demos/gtk-demo/demos/assistant.py
+++ b/demos/gtk-demo/demos/assistant.py
@@ -1,4 +1,4 @@
-#!/bin/env python
+#!/usr/bin/env python
 # -*- Mode: Python; py-indent-offset: 4 -*-
 # vim: tabstop=4 shiftwidth=4 expandtab
 #
@@ -35,7 +35,7 @@ class AssistantApp:
     def __init__(self):
         self.assistant = Gtk.Assistant()
         self.assistant.set_default_size(-1, 300)
- 
+
         self.create_page1()
         self.create_page2()
         self.create_page3()
@@ -44,7 +44,7 @@ class AssistantApp:
         self.assistant.connect('close', self.on_close_cancel)
         self.assistant.connect('apply', self.on_apply)
         self.assistant.connect('prepare', self.on_prepare)
-        
+
         self.assistant.show()
 
     def on_close_cancel(self, assistant):
@@ -66,7 +66,7 @@ class AssistantApp:
         page_number = self.assistant.get_current_page()
         current_page = self.assistant.get_nth_page(page_number)
         text = widget.get_text()
-        
+
         if text:
             self.assistant.set_page_complete(current_page, True)
         else:
@@ -78,7 +78,7 @@ class AssistantApp:
         box.set_border_width(12)
         label = Gtk.Label(label='You must fill out this entry to continue:')
         box.pack_start(label, False, False, 0)
-         
+
         entry = Gtk.Entry()
         box.pack_start(entry, True, True, 0)
         entry.connect('changed', self.on_entry_changed)
@@ -89,7 +89,7 @@ class AssistantApp:
         self.assistant.set_page_type(box, Gtk.AssistantPageType.INTRO)
 
         pixbuf = self.assistant.render_icon(Gtk.STOCK_DIALOG_INFO,
-                                            Gtk.IconSize.DIALOG, 
+                                            Gtk.IconSize.DIALOG,
                                             None)
 
         self.assistant.set_page_header_image(box, pixbuf)
@@ -98,18 +98,18 @@ class AssistantApp:
         box = Gtk.VBox(homogeneous=False,
                        spacing=12)
         box.set_border_width(12)
-        
+
         checkbutton = Gtk.CheckButton(label='This is optional data, you may continue even if you do not check this')
         box.pack_start(checkbutton, False, False, 0)
 
         box.show_all()
 
         self.assistant.append_page(box)
-        self.assistant.set_page_complete(box, True)        
+        self.assistant.set_page_complete(box, True)
         self.assistant.set_page_title(box, 'Page 2')
-        
+
         pixbuf = self.assistant.render_icon(Gtk.STOCK_DIALOG_INFO,
-                                            Gtk.IconSize.DIALOG, 
+                                            Gtk.IconSize.DIALOG,
                                             None)
         self.assistant.set_page_header_image(box, pixbuf)
 
@@ -117,12 +117,12 @@ class AssistantApp:
         label = Gtk.Label(label='This is a confirmation page, press "Apply" to apply changes')
         label.show()
         self.assistant.append_page(label)
-        self.assistant.set_page_complete(label, True)        
+        self.assistant.set_page_complete(label, True)
         self.assistant.set_page_title(label, 'Confirmation')
         self.assistant.set_page_type(label, Gtk.AssistantPageType.CONFIRM)
 
         pixbuf = self.assistant.render_icon(Gtk.STOCK_DIALOG_INFO,
-                                            Gtk.IconSize.DIALOG, 
+                                            Gtk.IconSize.DIALOG,
                                             None)
         self.assistant.set_page_header_image(label, pixbuf)
 
diff --git a/demos/gtk-demo/demos/builder.py b/demos/gtk-demo/demos/builder.py
index cddb1c2..9ce4e65 100644
--- a/demos/gtk-demo/demos/builder.py
+++ b/demos/gtk-demo/demos/builder.py
@@ -1,4 +1,4 @@
-#!/bin/env python
+#!/usr/bin/env python
 # -*- Mode: Python; py-indent-offset: 4 -*-
 # vim: tabstop=4 shiftwidth=4 expandtab
 #



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