[gtk-web/new-website] Fix the comment in the Python sample code



commit 452670d37fe55be09ec961c2f7b9e24f143933f9
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Feb 18 18:10:02 2020 +0000

    Fix the comment in the Python sample code

 _data/sample_codes.yml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/_data/sample_codes.yml b/_data/sample_codes.yml
index feda1a0..85a74fb 100644
--- a/_data/sample_codes.yml
+++ b/_data/sample_codes.yml
@@ -29,22 +29,22 @@ codes:
       ```python
       from gi.repository import Gtk
 
-      // When the application is launched…
+      # When the application is launched…
       def on_activate(app):
-          // … create a new window…
+          # … create a new window…
           win = Gtk.ApplicationWindow(application=app)
-          // … with a button in it…
+          # … with a button in it…
           btn = Gtk.Button(label='Hello, World!')
-          // … which closes the window when clicked
+          # … which closes the window when clicked
           btn.connect('clicked', lambda x: win.destroy())
           win.add(btn)
           win.show_all()
 
-      // Create a new application
+      # Create a new application
       app = Gtk.Application(application_id='com.example.GtkApplication')
       app.connect('activate', on_activate)
 
-      // Run the application
+      # Run the application
       app.run(None)
       ```
   - name: C


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