From: <je...@un...> - 2006-06-30 22:18:42
|
Fix the "feed override keys don't work the first time" bug: "update idletasks" before doing all the vupdates. It seems that the scale gets its variable changed immediately after it is set(), but the command= isn't called until later (when the scale is being repainted). This "update" forces the repaint to happen before the value is updated from the stat buffer. If the "update" does call commands.set_feedrate() then the blackout period will apply. tool is a StringVar not an IntVar M +2 -1 axis.py 1.210 http://unpythonic.net/cgi-bin/viewcvs.cgi/axis/scripts/axis.py.diff?r1=1.209&r2=1.210 --- axis.py 30 Jun 2006 18:50:09 -0000 1.209 +++ axis.py 30 Jun 2006 22:18:37 -0000 1.210 @@ -1199,6 +1199,7 @@ self.last_speed = speed self.lastpts = self.logger.npts + root_window.update_idletasks() vupdate(vars.exec_state, self.stat.exec_state) vupdate(vars.interp_state, self.stat.interp_state) vupdate(vars.task_mode, self.stat.task_mode) @@ -1609,7 +1610,7 @@ ("show_extents", IntVar), ("show_machine_speed", IntVar), ("feedrate", IntVar), - ("tool", IntVar), + ("tool", StringVar), ("active_codes", StringVar), ("metric", IntVar), ("coord_type", IntVar), |