def onProHelp(self): noHelp = True for i in self.environment.paths: pathDE = pu.normPath(i + "\\html\\german\\proe\\default.htm") pathEN = pu.normPath(i + "\\html\\usascii\\proe\\default.htm") if os.path.exists(pathDE): os.system(pu.spacePath(pathDE)) noHelp = False return if os.path.exists(pathEN): os.system(pu.spacePath(pathEN)) noHelp = False return if noHelp: # dialog instance dialog = pyCADdialoguiHandler.AskDialog() dialog.setText("Hinweis:") dialog.setURL(pu.textURL("noprohelp")) # dialog modal show dialog.exec_() return
def onCleanCache(self): # dialog instance dialog = pyCADdialoguiHandler.AskDialog() dialog.setText("Vorsicht:") dialog.setURL(pu.textURL("delcache")) # dialog modal show dialog.exec_() if dialog.getStatus(): pyCADutils.cleanCache() print("cache geloescht") return else: print("abgebrochen") return