[gnome-devel-docs] Improve indentation in Python messagedialog demo



commit 2c4b17a37b5b6220b97c26c0e86ca9ad8d80cfb2
Author: David King <amigadave amigadave com>
Date:   Sun Jan 26 23:27:56 2014 +0000

    Improve indentation in Python messagedialog demo
    
    https://bugzilla.gnome.org/show_bug.cgi?id=685415

 platform-demos/C/samples/messagedialog.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/platform-demos/C/samples/messagedialog.py b/platform-demos/C/samples/messagedialog.py
index 6e81923..fff5960 100644
--- a/platform-demos/C/samples/messagedialog.py
+++ b/platform-demos/C/samples/messagedialog.py
@@ -4,7 +4,7 @@ import sys
 
 class MyWindow(Gtk.ApplicationWindow):
 
-     # constructor for a window (the parent window) with a label
+    # constructor for a window (the parent window) with a label
     def __init__(self, app):
         Gtk.Window.__init__(self, title="GMenu Example", application=app)
         self.set_default_size(400, 200)
@@ -37,8 +37,8 @@ class MyWindow(Gtk.ApplicationWindow):
     def dialog_response(self, widget, response_id):
         # if the button clicked gives response OK (-5)
         if response_id == Gtk.ResponseType.OK:
-                   print "*boom*"
-               # if the button clicked gives response CANCEL (-6)
+            print "*boom*"
+        # if the button clicked gives response CANCEL (-6)
         elif response_id == Gtk.ResponseType.CANCEL:
             print "good choice"
         # if the messagedialog is destroyed (by pressing ESC)


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