def refresh(self): if self.counter > 0: cgruconfig.Config() keeper_refresh = 1000 * int(cgruconfig.VARS['keeper_refresh']) if self.timer.interval() != keeper_refresh: self.timer.setInterval(keeper_refresh) nimby.refresh() render.refresh() self.counter += 1
def editCGRUConfig(): if QtCore.QProcess.execute( cgruconfig.VARS['editor'] % cgruconfig.VARS['config_file_home']) == 0: cgruconfig.Config()
def confReload(): cgruconfig.Config() def quit(): Application.quit()
def appendConfigFile(self, filename): self.textCursor().insertText('\n%s:\n' % filename, self.ftitle) variables = dict() cgruconfig.Config(variables, [filename]) self.appendVars(variables)