예제 #1
0
파일: refresh.py 프로젝트: yazici/cgru
 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
예제 #2
0
def editCGRUConfig():
   if QtCore.QProcess.execute( cgruconfig.VARS['editor'] % cgruconfig.VARS['config_file_home']) == 0:
      cgruconfig.Config()
예제 #3
0
def confReload(): cgruconfig.Config()
def quit(): Application.quit()
예제 #4
0
 def appendConfigFile(self, filename):
     self.textCursor().insertText('\n%s:\n' % filename, self.ftitle)
     variables = dict()
     cgruconfig.Config(variables, [filename])
     self.appendVars(variables)