[pygobject] [gtk-demo] remove C-isms



commit 250c36f4a8352ff1b31c1c85b156d3e803d4b8ef
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Fri Aug 19 15:08:15 2011 +0200

    [gtk-demo] remove C-isms

 demos/gtk-demo/gtk-demo.py |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/demos/gtk-demo/gtk-demo.py b/demos/gtk-demo/gtk-demo.py
index 00ed674..4d0b089 100755
--- a/demos/gtk-demo/gtk-demo.py
+++ b/demos/gtk-demo/gtk-demo.py
@@ -129,24 +129,24 @@ class GtkDemoWindow(Gtk.Window):
         notebook.append_page(text_widget, Gtk.Label.new_with_mnemonic('_Info'))
         self.info_buffer = info_buffer
 
-        tag = info_buffer.create_tag ('title', font = 'Sans 18')
+        tag = info_buffer.create_tag('title', font = 'Sans 18')
 
         (text_widget, source_buffer) = self.create_text(True)
         notebook.append_page(text_widget, Gtk.Label.new_with_mnemonic('_Source'))
 
-        self.source_buffer = source_buffer;
-        tag = source_buffer.create_tag ('comment', foreground = 'DodgerBlue')
-        tag = source_buffer.create_tag ('type', foreground = 'ForestGreen')
-        tag = source_buffer.create_tag ('string',
-                                        foreground = 'RosyBrown',
-                                        weight = Pango.Weight.BOLD)
-        tag = source_buffer.create_tag ('control', foreground = 'purple')
-        tag = source_buffer.create_tag ('preprocessor',
-                                        style = Pango.Style.OBLIQUE,
-                                        foreground = 'burlywood4')
-        tag = source_buffer.create_tag ('function' ,
-                                        weight = Pango.Weight.BOLD,
-                                        foreground = 'DarkGoldenrod4')
+        self.source_buffer = source_buffer
+        tag = source_buffer.create_tag('comment', foreground = 'DodgerBlue')
+        tag = source_buffer.create_tag('type', foreground = 'ForestGreen')
+        tag = source_buffer.create_tag('string',
+                                       foreground = 'RosyBrown',
+                                       weight = Pango.Weight.BOLD)
+        tag = source_buffer.create_tag('control', foreground = 'purple')
+        tag = source_buffer.create_tag('preprocessor',
+                                       style = Pango.Style.OBLIQUE,
+                                       foreground = 'burlywood4')
+        tag = source_buffer.create_tag('function' ,
+                                       weight = Pango.Weight.BOLD,
+                                       foreground = 'DarkGoldenrod4')
 
         self.source_buffer = source_buffer
         self.show_all()



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