def loadCfg(self): self.file_opt['title'] = 'Load configuration file' filename = tkFileDialog.askopenfilename(**self.file_opt) self.root.title(self.title_prefix + " " + filename) self.loadedOptions = readOptions(filename) for o in self.loadedOptions: self.optionValues[o.name].set(o.value)
def loadCfg(self): self.file_opt['title'] = 'Load configuration file' filename = filedialog.askopenfilename(**self.file_opt) self.root.title(self.title_prefix + " " + filename) self.loadedOptions = readOptions(filename) for o in self.loadedOptions: self.optionValues[o.name].set(o.value)