[gnome-devel-docs] tutorials python: example of scale without deprecated VScale



commit 104ec4317e204d1b2dee194148b7be1b117590ef
Author: Marta Maria Casetti <mmcasetti gmail com>
Date:   Sat May 26 22:56:26 2012 +0100

    tutorials python: example of scale without deprecated VScale

 platform-demos/C/samples/scale.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/platform-demos/C/samples/scale.py b/platform-demos/C/samples/scale.py
index 8005f0c..86f1e05 100644
--- a/platform-demos/C/samples/scale.py
+++ b/platform-demos/C/samples/scale.py
@@ -20,7 +20,7 @@ class MyWindow(Gtk.ApplicationWindow):
         h_scale.connect("value-changed", self.scale_moved)
 
         # a vertical scale
-        v_scale = Gtk.VScale(adjustment=ad2)
+        v_scale = Gtk.Scale(orientation=Gtk.Orientation.VERTICAL, adjustment=ad2)
 
         v_scale.connect("value-changed", self.scale_moved)
 



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