Example #1
0
 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))
Example #2
0
 def printError(message) -> None:
     calledInfo = Debug.getCalledInfo()
     Debug.poolPtr.pushMessage(
         consolemsg_class(qstr(calledInfo), qstr(message),
                          msgtype_enum.Error))
Example #3
0
 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))
Example #4
0
 def MessageBox(title: str, message: str):
     qt_module_wrapped.qutility_class.messageBox(
         qt_module_wrapped.qstr(title), qt_module_wrapped.qstr(message))
Example #5
0
 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))
Example #6
0
 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))