Exemplo n.º 1
0
 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
Exemplo n.º 2
0
def editCGRUConfig():
   if QtCore.QProcess.execute( cgruconfig.VARS['editor'] % cgruconfig.VARS['config_file_home']) == 0:
      cgruconfig.Config()
Exemplo n.º 3
0
def confReload(): cgruconfig.Config()
def quit(): Application.quit()
Exemplo n.º 4
0
 def appendConfigFile(self, filename):
     self.textCursor().insertText('\n%s:\n' % filename, self.ftitle)
     variables = dict()
     cgruconfig.Config(variables, [filename])
     self.appendVars(variables)