def __init__(self): ''' init docs ''' PopupGrabWindow.__init__(self, CompletionWindow, handle_input_method=True)
def __init__(self): ''' init docs ''' PopupGrabWindow.__init__(self, CompletionWindow)
def __init__(self): ''' init docs ''' PopupGrabWindow.__init__(self, PopupPanel) self.button_press_callback = None
This is IconView interface, you should implement it. @return: Return True if do release work, otherwise return False. When this function return True, IconView will call function gc.collect() to release object to release memory. ''' if self.icon_pixbuf: del self.icon_pixbuf self.icon_pixbuf = None return True gobject.type_register(StartDesktopItem) start_desktop_grab_window = PopupGrabWindow(StartDesktopWindow) if __name__ == "__main__": window = StartDesktopWindow() # window.start(["a", "b"]) # window.start(["a", "b", "c"]) window.start(["a", "b", "c", "d"]) # window.start(["a", "b", "c", "d"] * 2) # window.start(["a", "b", "c", "d"] * 3) # window.start(["a", "b", "c", "d"] * 4) window.connect("destroy", lambda w: gtk.main_quit()) gtk.main()