Author: esr
Date: Sun Oct 12 07:45:00 2008
New Revision: 30073

URL: http://svn.gna.org/viewcvs/wesnoth?rev=30073&view=rev
Log:
trackplacer: Control to set editing action is now active.

Modified:
    trunk/data/tools/trackplacer

Modified: trunk/data/tools/trackplacer
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/trackplacer?rev=30073&r1=30072&r2=30073&view=diff
==============================================================================
--- trunk/data/tools/trackplacer (original)
+++ trunk/data/tools/trackplacer Sun Oct 12 07:45:00 2008
@@ -122,6 +122,7 @@
         # Initialize our info about the map and track 
         self.journey = JourneyTrack()
         self.journey.read(filename)
+        self.action = "JOURNEY"
         # Backing pixmap for drawing area
         self.pixmap = None
 
@@ -232,7 +233,9 @@
         self.log("initialization successful")
 
     def button_callback(self, widget, data=None):
-        print "%s was toggled %s" % (data, ("OFF", "ON")[widget.get_active()])
+        "Radio button callback, changes selected editing action."
+        if widget.get_active():
+            self.action = data
 
     def refresh_map(self, x=0, y=0, xs=-1, ys=-1):
         "Refresh part of the drawing area with the apprpriate map rectangle."


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to