def __init__(self): Tk.__init__(self) self.title("Android Synchronizer") try: ico = PhotoImage(file = join(dirname(__file__), "logo.gif")) self.tk.call("wm", "iconphoto", self._w, ico) except Exception as e: print("Failed to set icon: %s" % e) self._server = None self.rowconfigure(0, weight = 1) self.columnconfigure(0, weight = 1)
def __init__(self, **kw): Tk.__init__(self, **kw) self.var = None