[gnome-devel-docs] platform-demos: Add note in image.py.page



commit c7527c4abc1cbe0ff6161d98601e1a89864acd6a
Author: Sindhu S <sindhus live in>
Date:   Thu Mar 6 18:32:51 2014 +0530

    platform-demos: Add note in image.py.page
    
    Add note about including imports and instaliazing application
    before trying to run the code alternate code snippet.

 platform-demos/C/image.py.page |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/platform-demos/C/image.py.page b/platform-demos/C/image.py.page
index 653e75e..e7aa568 100644
--- a/platform-demos/C/image.py.page
+++ b/platform-demos/C/image.py.page
@@ -59,6 +59,11 @@ class MyApplication(Gtk.Application):
         win.add(MyImage())
         # show the window and everything on it
         win.show_all()</code>
+  <note>
+    <p>To use this code snippet, you will need to add the code that imports
+    <code>Gtk</code> and <code>GdkPixbuf</code> from <code>gi.repository</code>
+    and lines that instantiate the <code>MyApplication</code> window.</p>
+  </note>
   </section>
 
   <section id="methods">


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