def destroy(self): after_cancel(self.timer) unbind_destroy(self.top) try: self.top.wm_withdraw() except: if traceback: traceback.print_exc() pass try: self.top.destroy() except: if traceback: traceback.print_exc() pass # destruct(self.top) if 1 and self.parent: # ??? try: # self.parent.update_idletasks() # FIXME: why do we need this under Windows ? if hasattr(self.parent, "busyUpdate"): self.parent.busyUpdate() else: self.parent.update() except: if traceback: traceback.print_exc() pass self.top = None self.parent = None
def destroy(self): after_cancel(self.timer) unbind_destroy(self.top) self.top.destroy() self.top.update_idletasks() self.top = None self.parent = None
def destroy(self): after_cancel(self.timer) unbind_destroy(self.top) try: self.top.wm_withdraw() except Exception: if traceback: traceback.print_exc() pass try: self.top.destroy() except Exception: if traceback: traceback.print_exc() pass # destruct(self.top) if 1 and self.parent: # ??? try: # self.parent.update_idletasks() # FIXME: why do we need this under Windows ? if hasattr(self.parent, "busyUpdate"): self.parent.busyUpdate() else: self.parent.update() except Exception: if traceback: traceback.print_exc() pass self.top = None self.parent = None
def _enter(self, *event): after_cancel(self.timer) after_cancel(self.cancel_timer) self.cancel_timer = None if time.time() - MfxTooltip.last_leave_time < self.leave_timeout/1000.: self._showTip() else: self.timer = after(self.widget, self.timeout, self._showTip)
def destroy(self, *args): for group in self.groups: unbind_destroy(group) unbind_destroy(self) if self.timer: after_cancel(self.timer) self.timer = None self.wm_withdraw() if self.highlight_items: for i in self.highlight_items: i.delete() tkinter.Toplevel.destroy(self)
def _leave(self, *event): after_cancel(self.timer) after_cancel(self.cancel_timer) self.timer = self.cancel_timer = None if self.tooltip: self.label.destroy() destruct(self.label) self.label = None self.tooltip.destroy() destruct(self.tooltip) self.tooltip = None MfxTooltip.last_leave_time = time.time()
def destroy(self, *args): for l in self.groups: unbind_destroy(l) unbind_destroy(self) if self.timer: after_cancel(self.timer) self.timer = None self.wm_withdraw() if self.highlight_items: for i in self.highlight_items: i.delete() Tkinter.Toplevel.destroy(self)
def leaveEvent(self, suit, rank, rect, group): ##print 'leaveEvent', suit, rank, self.busy if self.busy: return self.busy = True if self.highlight_items: for i in self.highlight_items: i.delete() self.highlight_items = [] if self.timer: after_cancel(self.timer) self.timer = None rect.config(state='hidden') if self.game.canvas: self.game.canvas.update_idletasks() self.canvas.update_idletasks() self.busy = False