_pythonGenericUI Class

class rrGlobal._pythonGenericUI

Basic Dialog Window. You can add buttons, checkBoxes, lineEdits, etc.

myDialog = rrGlobal.getGenericUI()

myDialog.addItem(rrGlobal.genUIType.label, 'infoLabel', '')
myDialog.setText('infoLabel', 'Hello! This is a test UI')
myDialog.addItem(rrGlobal.genUIType.lineEdit, 'myEdit', '')
myDialog.setText('myEdit', 'Preset Text')
myDialog.addItem(rrGlobal.genUIType.layoutH, 'btnLayout', '')
myDialog.addItem(rrGlobal.genUIType.closeButton, 'Ok', 'btnLayout')
myDialog.addItem(rrGlobal.genUIType.closeButton, 'Abort', 'btnLayout')
myDialog.execute()

editText=myDialog.text('myEdit')
print('The text is', editText)
if myDialog.value('Ok') == 1:
    print('OK was pressed')
if myDialog.value('Abort') == 1:
    print('ABORT was pressed')