]> err.no Git - libchamplain/commitdiff
Some small fixes in python binding demos
authorVictor Godoy Poluceno <victorpoluceno@gmail.com>
Mon, 17 Aug 2009 01:00:19 +0000 (22:00 -0300)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Thu, 3 Sep 2009 23:56:46 +0000 (19:56 -0400)
bindings/python/demos/Makefile.am
bindings/python/demos/animated-marker.py
bindings/python/demos/launcher.py
bindings/python/demos/polygons.py

index 0068b3d440b48c1645c45948c3a202f25c700c8d..6c28cf08422a0f602de0f90cae7447194ce0f98f 100644 (file)
@@ -1,2 +1 @@
-
-EXTRA_DIST= capitals.py animated-marker.py demomarkers.py launcher-gtk.py
+EXTRA_DIST= capitals.py animated-marker.py launcher-gtk.py laucher.py polygons.py markers.py
index b6d1c778a8176888ecadea7e16463d9a430ccf06..7e2ac5da98fbf81d65516c0071d49c21c2d96775 100755 (executable)
@@ -15,7 +15,7 @@ MARKER_SIZE = 10
 MARKER_COLOR = [0.1,0.1,0.9,1.0]
 
 POSITION = [45.528178, -73.563788]
-SCREEN_SIZE = [800,600]
+SCREEN_SIZE = [640, 480]
 
 #The AnimatedMarker will extend the champlain.Marker class
 class AnimatedMarker(champlain.Marker) :
index cb6b8127b11db69fb021131b14e5635ae86b2344..e09af95ec4763fe5baafb09984f3c19e243f2e69 100644 (file)
@@ -45,7 +45,7 @@ def main():
 
     # Create the map view
     actor = champlain.View()
-    actor.set_size(800, 600)
+    actor.set_size(640, 480)
     actor.set_property('scroll-mode', champlain.SCROLL_MODE_KINETIC)
     actor.center_on(45.466, -73.75)
     actor.set_property('zoom-level', 12)
@@ -74,7 +74,7 @@ def main():
     actor.add_layer(layer)
  
     stage = clutter.stage_get_default()
-    stage.set_size(800, 600)
+    stage.set_size(640, 480)
     stage.add(actor)
     stage.add(buttons)
     stage.show()
index b2f5a76fd3485368ee0c9c9c29190ea4ab63ddf2..7700b5df80c9263280563720611d23770ad55ace 100644 (file)
@@ -40,7 +40,7 @@ def make_button(text):
 def main():
     # Create the map view
     actor = champlain.View()
-    actor.set_size(800, 600)
+    actor.set_size(640, 480)
     actor.set_property('scroll-mode', champlain.SCROLL_MODE_KINETIC)
     actor.set_property('zoom-level', 9)
     actor.center_on(45.466, -73.75)
@@ -65,7 +65,7 @@ def main():
     buttons.add(button)
     
     stage = clutter.stage_get_default()
-    stage.set_size(800, 600)
+    stage.set_size(640, 480)
     stage.add(actor)
     stage.add(buttons)
     stage.show()