# HG changeset patch # User dmcc # Date 2003-07-10 07:39:55 # Node ID ce362534d133327d9353bb66b239c8ac8bf24910 # Parent e9c06be9b26b2374169823176fd10a306de283e1 - maybe more fixes to CueFaders - maybe more fixes to CueFaders - no interesting changes to cues/dolly, just stupid id changes diff --git a/flax/CueFaders.py b/flax/CueFaders.py --- a/flax/CueFaders.py +++ b/flax/CueFaders.py @@ -95,6 +95,8 @@ class TimedGoButton(Tk.Frame): self.start_time = 0 self.fading = 0 self.last_after_key = 0 + def manual_override(self, *args): + self.end_fade() def wheelscroll(self, event): """Mouse wheel increments or decrements timer.""" if event.num == 4: # scroll up @@ -108,14 +110,13 @@ class TimedGoButton(Tk.Frame): self.end_level = end_level if self.fading == 1: # if we're already fading - print "already fading!" - # fade_time = old_fade_length - self.fading = 'paused' - self.fade_length = time.time() - self.last_start_time - print "fade_length", self.fade_length - self.end_fade() + # new fade should be as long as however much was left + self.fade_length = self.fade_length - \ + (time.time() - self.last_start_time) + self.button['text'] = 'Unpause' + self.after_cancel(self.last_after_key) else: - print "not already fading or continuing a fade" try: fade_time = float(self.timer_var.get()) except ValueError: @@ -124,10 +125,10 @@ class TimedGoButton(Tk.Frame): print ">>> Can't fade -- bad time", self.timer_var.get() return - # TODO fix + # if we're not already fading, we get our time from the entry if self.fading != 'paused': self.fade_length = fade_time - print "fade_length", self.fade_length + self.button['text'] = 'Pause' self.fading = 1 self.do_fade() @@ -339,6 +340,7 @@ class CueFader(Tk.Frame): for scale_name, scale in self.scales.items(): # print "shift: setting scale to 0", scale_name scale.scale.set(0) + self.go_buttons[scale_name].manual_override() self.update_cue_cache(compute_dmx_levels=1) if self.auto_load_times.get(): diff --git a/flax/cues/dolly b/flax/cues/dolly --- a/flax/cues/dolly +++ b/flax/cues/dolly @@ -1,11 +1,11 @@ - + - - + + @@ -13,7 +13,7 @@ - + @@ -21,7 +21,7 @@ - + @@ -29,7 +29,7 @@ - + @@ -37,7 +37,7 @@ - + @@ -45,7 +45,7 @@ - + @@ -53,7 +53,7 @@ - + @@ -61,7 +61,7 @@ - + @@ -69,7 +69,7 @@ - + @@ -77,7 +77,7 @@ - + @@ -85,7 +85,7 @@ - + @@ -93,7 +93,7 @@ - + @@ -101,7 +101,7 @@ - + @@ -109,7 +109,7 @@ - + @@ -117,7 +117,7 @@ - + @@ -125,7 +125,7 @@ - + @@ -133,7 +133,7 @@ - + @@ -141,7 +141,7 @@ - + @@ -149,7 +149,7 @@ - + @@ -157,7 +157,7 @@ - + @@ -165,7 +165,7 @@ - + @@ -173,7 +173,7 @@ - + @@ -181,7 +181,7 @@ - + @@ -189,7 +189,7 @@ - + @@ -197,7 +197,7 @@ - + @@ -205,7 +205,7 @@ - + @@ -213,7 +213,7 @@ - + @@ -221,7 +221,7 @@ - + @@ -229,7 +229,7 @@ - + @@ -237,7 +237,7 @@ - + @@ -245,7 +245,7 @@ - + @@ -253,7 +253,7 @@ - + @@ -261,7 +261,7 @@ - + @@ -269,7 +269,7 @@ - + @@ -277,7 +277,7 @@ - + @@ -285,7 +285,7 @@ - + @@ -293,7 +293,7 @@ - + @@ -301,7 +301,7 @@ - + @@ -309,7 +309,7 @@ - + @@ -317,7 +317,7 @@ - + @@ -325,7 +325,7 @@ - + @@ -333,7 +333,7 @@ - + @@ -341,7 +341,7 @@ - + @@ -349,7 +349,7 @@ - + @@ -357,7 +357,7 @@ - + @@ -365,7 +365,7 @@ - + @@ -373,7 +373,7 @@ - + @@ -381,7 +381,7 @@ - + @@ -389,7 +389,7 @@ - + @@ -397,7 +397,7 @@ - + @@ -405,7 +405,7 @@ - + @@ -413,7 +413,7 @@ - + @@ -421,7 +421,7 @@ - + @@ -429,7 +429,7 @@ - + @@ -437,7 +437,7 @@ - + @@ -445,7 +445,7 @@ - + @@ -453,7 +453,7 @@ - + @@ -461,7 +461,7 @@ - + @@ -469,7 +469,7 @@ - + @@ -477,7 +477,7 @@ - + @@ -485,7 +485,7 @@ - + @@ -493,7 +493,7 @@ - + @@ -501,7 +501,7 @@ - + @@ -509,7 +509,7 @@ - + @@ -517,7 +517,7 @@ - + @@ -525,7 +525,7 @@ - + @@ -533,7 +533,7 @@ - + @@ -541,7 +541,7 @@ - + @@ -549,7 +549,7 @@ - + @@ -557,7 +557,7 @@ - + @@ -565,7 +565,7 @@ - + @@ -573,7 +573,7 @@ - + @@ -581,7 +581,7 @@ - + @@ -589,7 +589,7 @@ - + @@ -597,7 +597,7 @@ - + @@ -605,7 +605,7 @@ - + @@ -613,7 +613,7 @@ - + @@ -621,7 +621,7 @@ - + @@ -629,7 +629,7 @@ - + @@ -637,7 +637,7 @@ - + @@ -645,7 +645,7 @@ - + @@ -653,7 +653,7 @@ - + @@ -661,7 +661,7 @@ - + @@ -669,7 +669,7 @@ - + @@ -677,7 +677,7 @@ - + @@ -685,7 +685,7 @@ - + @@ -693,7 +693,7 @@ - + @@ -701,7 +701,7 @@ - + @@ -709,7 +709,7 @@ - + @@ -717,7 +717,7 @@ - + @@ -725,7 +725,7 @@ - + @@ -733,7 +733,7 @@ - + @@ -741,7 +741,7 @@ - + @@ -749,7 +749,7 @@ - + @@ -757,7 +757,7 @@ - + @@ -765,7 +765,7 @@ - + @@ -773,7 +773,7 @@ - + @@ -781,7 +781,7 @@ - + @@ -789,7 +789,7 @@ - +