From: Victor Godoy Poluceno Date: Mon, 17 Aug 2009 01:00:19 +0000 (-0300) Subject: Some small fixes in python binding demos X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=273464a38803915cf156e79877d702764364cce4;p=libchamplain Some small fixes in python binding demos --- diff --git a/bindings/python/demos/Makefile.am b/bindings/python/demos/Makefile.am index 0068b3d..6c28cf0 100644 --- a/bindings/python/demos/Makefile.am +++ b/bindings/python/demos/Makefile.am @@ -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 diff --git a/bindings/python/demos/animated-marker.py b/bindings/python/demos/animated-marker.py index b6d1c77..7e2ac5d 100755 --- a/bindings/python/demos/animated-marker.py +++ b/bindings/python/demos/animated-marker.py @@ -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) : diff --git a/bindings/python/demos/launcher.py b/bindings/python/demos/launcher.py index cb6b812..e09af95 100644 --- a/bindings/python/demos/launcher.py +++ b/bindings/python/demos/launcher.py @@ -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() diff --git a/bindings/python/demos/polygons.py b/bindings/python/demos/polygons.py index b2f5a76..7700b5d 100644 --- a/bindings/python/demos/polygons.py +++ b/bindings/python/demos/polygons.py @@ -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()