def display_pref_window(self): ''' Display window preferences ''' self.comboCurrentDir = gtk.ComboBox() self.comboCurrentDir = self.fill_combo(self.comboCurrentDir, self.fileChooser['dir']) self.comboLibGui = gtk.ComboBox() self.comboLibGui = self.fill_combo(self.comboLibGui, self.libguis) self.comboOuts = gtk.ComboBox() self.comboOuts = self.fill_combo(self.comboOuts, self.outs) array = { 'action': 'pref', 'actions': self.actions, 'comboCurrentDir': self.comboCurrentDir, 'comboLibGui': self.comboLibGui, 'comboOuts': self.comboOuts, 'dir': self.dir, 'dirs': self.dirs, 'fileChooser': self.fileChooser, 'generator': self.generator, 'libgui': self.libgui, 'libguis': self.libguis, 'outs': self.outs, 'text': self.text, 'title': self.title, 'version': self.version, } WD = Window_Dialog(array) WD.set_debug(self.debug) WD.set_log(self.log) WD.run()
def build_mssg_controlByFile(self): ''' Build message for action 'control by file' ''' if hasattr(self, 'txt') and self.txt is not None: self.control_by_file_txt() elif hasattr(self, 'xml') and self.xml is not None: self.control_by_file_xml() array = { 'algo': self.algo, 'algos': self.algos, 'action': self.action, 'actions': self.actions, #'checksum': self.checksum, 'dir': self.dir, 'dirs': self.dirs, #'file': os.path.basename(self.file), 'files': self.result, 'filters': self.algos, 'outs': self.outs, 'text': self.text, 'title': self.title, 'version': self.version, } WD = Window_Dialog(array) WD.set_debug(self.debug) WD.set_log(self.log) WD.run() self.end = True self.flag = '' self.mssg = ''
def display_precalc_window(self): array = { 'algo': self.algo, 'algos': self.algos, 'action': 'precalcul', 'actions': self.actions, 'dir': self.dir, 'dirs': self.dirs, 'files': self.files, 'filters': self.algos, 'outs': self.outs, 'text': self.text, 'title': self.title, 'version': self.version, } WD = Window_Dialog(array) WD.set_debug(self.debug) WD.set_log(self.log) WD.run() if not WD.get_result(): self.init_arrays() self.on_btnFile_clicked(self.btnFile) else: self.execute_hash()
def build_mssg_calcul(self): ''' Build message for calcul action ''' self.end = True self.flag = '' array = { 'algo': self.algo, 'algos': self.algos, 'action': self.action, 'actions': self.actions, 'dir': self.dir, 'dirs': self.dirs, 'generator': self.generator, 'fileChooser': self.fileChooser, 'files': self.files, 'filters': self.algos, 'outs': self.outs, 'text': self.text, 'title': self.title, 'version': self.version, } WD = Window_Dialog(array) WD.set_debug(self.debug) WD.set_log(self.log) WD.run()