Esempio n. 1
0
 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)
Esempio n. 2
0
 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)