def SetLineEditText(self,objectName,text): ptr = GUI.UUIDToWidgetMap[self.getUUID()].ptr handle = GUI.UUIDToWidgetMap[self.getUUID()].findHandle(objectName) if not handle: Debug.printError(objectName+" not found") else: handle.setText(qt_module_wrapped.qstr(text))
def printError(message) -> None: calledInfo = Debug.getCalledInfo() Debug.poolPtr.pushMessage( consolemsg_class(qstr(calledInfo), qstr(message), msgtype_enum.Error))
def AskOpenFile(title, filter=str(), default=str()): return qt_module_wrapped.qutility_class.openFile(qt_module_wrapped.qstr(title), \ qt_module_wrapped.qstr(filter),\ qt_module_wrapped.qstr(default))
def MessageBox(title: str, message: str): qt_module_wrapped.qutility_class.messageBox( qt_module_wrapped.qstr(title), qt_module_wrapped.qstr(message))
def SetIP(self,objectName,IP): handle = GUI.UUIDToWidgetMap[self.getUUID()].findHandle(objectName) if not handle: Debug.printError(objectName+" not found") else: handle.setIP(qt_module_wrapped.qstr(IP))
def SetStyleSheet(self,objectName,qssStr): handle = GUI.UUIDToWidgetMap[self.getUUID()].findHandle(objectName) if not handle: Debug.printError(objectName+" not found") else: handle.setQss(qt_module_wrapped.qstr(qssStr))