[gnome-devel-docs] tutorials python: small adjustments to python image-viewer



commit 6e457e88e31133a1c991cc1c5c5dffca86ab0a29
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date:   Tue Feb 21 02:23:51 2012 +0100

    tutorials python: small adjustments to python image-viewer

 platform-demos/C/image-viewer.py.page         |   18 +++++++++---------
 platform-demos/C/image-viewer/image-viewer.py |    4 ++--
 2 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/platform-demos/C/image-viewer.py.page b/platform-demos/C/image-viewer.py.page
index a70eda5..f80fdc1 100644
--- a/platform-demos/C/image-viewer.py.page
+++ b/platform-demos/C/image-viewer.py.page
@@ -3,11 +3,11 @@
       id="image-viewer.py">
 
   <info>
-    
+
     <link type="guide" xref="index#py"/>
-    
+
     <desc>A little bit more than a simple "Hello world" application - write an image viewer in GTK. </desc>
-    
+
     <revision pkgversion="0.1" version="0.1" date="2011-03-19" status="review"/>
     <credit type="author">
       <name>Jonh Wendell</name>
@@ -16,8 +16,8 @@
     <credit type="author">
       <name>Johannes Schmid</name>
       <email>jhs gnome org</email>
-    </credit>    
-    
+    </credit>
+
   </info>
 
 <title>Image Viewer</title>
@@ -47,7 +47,7 @@
     <p>Start Anjuta and click <guiseq><gui>File</gui><gui>New</gui><gui>Project</gui></guiseq> to open the project wizard.</p>
     </item>
     <item>
-    <p>Choose <gui>PyGTK (automake)</gui> from the <gui>Python</gui> tab, click <gui>Forward</gui>, and fill out your details on the next few pages. Use <file>image-viewer</file> as project name and directory.</p>
+    <p>Choose <gui>PyGTK (automake)</gui> from the <gui>Python</gui> tab, click <gui>Continue</gui>, and fill out your details on the next few pages. Use <file>image-viewer</file> as project name and directory.</p>
    	</item>
    	<item>
    	<p>Be sure to disable <gui>Use GtkBuilder for user interface</gui> as we will build the
@@ -81,7 +81,7 @@ class GUI:
 def main():
 	app = GUI()
 	Gtk.main()
-		
+
 if __name__ == "__main__":
     sys.exit(main())
 ]]>
@@ -104,7 +104,7 @@ if __name__ == "__main__":
     <p>The rest of the file does initialisation for Gtk and displays the GUI.</p>
     </item>
   </list>
-  
+
   <p>This code is ready to run, so try it using <guiseq><gui>Run</gui><gui>Execute</gui></guiseq>.
    It should show you an empty window.</p>
 </section>
@@ -186,7 +186,7 @@ def on_open_clicked (self, button):
 
 	if dialog.run() == 1:
 		self.image.set_from_file(dialog.get_filename())
-	
+
 	dialog.destroy()]]></code>
   <p>This is a bit more complicated than anything we've attempted so far, so let's break it down:</p>
   <list>
diff --git a/platform-demos/C/image-viewer/image-viewer.py b/platform-demos/C/image-viewer/image-viewer.py
index 8c81839..5c65ae0 100755
--- a/platform-demos/C/image-viewer/image-viewer.py
+++ b/platform-demos/C/image-viewer/image-viewer.py
@@ -42,10 +42,10 @@ class GUI:
 		if dialog.run() == 1:
 			self.image.set_from_file(dialog.get_filename())
 		dialog.destroy()
-	
+
 def main():
 	app = GUI()
 	Gtk.main()
-		
+
 if __name__ == "__main__":
     sys.exit(main())



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