def hide(self): """ hide window """ try: self.panel.hide() except: pass else: hub.notify(events.focuschanged())
def bottom(self): """ bring window to bottom""" try: self.panel.bottom() except: pass else: hub.notify(events.focuschanged())
def top(self): """ bring window to top""" try: self.panel.top() # The following call fixes the redrawing problem when switching between # the filelist and the playlist window reported by Dag Wieers. curses.panel.update_panels() except: pass else: hub.notify(events.focuschanged())