def __init__(self, radio, direction, cb=None, parent=None): threading.Thread.__init__(self) self.__radio = radio self.__out = direction == "out" self.__cback = cb self.__cancelled = False self.__progw = cloneprog.CloneProg(parent=parent, cancel=self.cancel)
def __init__(self): self.mainwin = csvdump.CsvDumpWindow(self.select_radio, self.download_img, self.upload_img, self.import_file, self.export_file) self.progwin = cloneprog.CloneProg() self.progwin.set_transient_for(self.mainwin) self.progwin.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DIALOG) self.radio = None