(self, widget, event)
return False
Handle button presses on a Pane
Handle button presses on a Pane
Handle button presses on a Pane
def on_button_release(self, widget, event):
        """Handle button presses on a Pane"""
        if event.button == 1:
            if self.last_balance_time > (time.time() - 1):
                # Dumb loop still needed, or some terms get squished on a Super rebalance
                for i in range(3):
                    while Gtk.events_pending():
                        Gtk.main_iteration_do(False)
                    self.do_redistribute(*self.last_balance_args)
        return False
def on_button_release ( self , widget , event ) : if event . button == 1 : if self . last_balance_time > ( time . time ( ) - 1 ) : # Dumb loop still needed, or some terms get squished on a Super rebalance for i in range ( 3 ) : while Gtk . events_pending ( ) : Gtk . main_iteration_do ( False ) self . do_redistribute ( * self . last_balance_args ) return False