Parameters : | slotOrPublicMethod : {str}
arguments : {various types}, optional
|
---|
Notes
Use this method, to invoke any public slot or wrapped method of the underlying uiItem. For instance, see the Qt-help for slots of the widget of element you are wrapping by this instance of uiItem.
Parameters : | signalSignature : {str}
callableMethod : {python method or function}
|
---|
See also
Notes
This instance of uiItem wraps a widget, that is defined by a C++-class, that is finally derived from QWidget. See Qt-help for more information about the capabilities of every specific widget. Every widget can send various signals. Use this method to connect any signal to any callable python method (bounded or unbounded). This method must have the same number of arguments than the signal and the types of the signal definition must be convertable into a python object.
Parameters : | signalSignature : {str} callableMethod : {python method or function} |
---|
Notes
doctodo
Parameters : | attributeNumber : {int} |
---|
Notes
doctodo
Use this method or the operator [] in order to get the value of one specific property of this widget or of multiple properties. Multiple properties are given by a tuple or list of property names. For one single property, its value is returned as it is. If the property names are passed as sequence, a sequence of same size is returned with the corresponding values.
Parameters : | property : {string, string-list}
|
---|---|
Returns : | returns the value of one single property or a list of values, if a sequence of names is given as parameter. : |
See also
Notes
doctodo
Parameters : | propertyName : {tuple}, optional |
---|
Notes
doctodo
The flags-value is an or-combination of the enumeration Qt::WindowFlag. See Qt documentation for more information.
Parameters : | signalSignature : {str}
|
---|
See also
Notes
If you use the connect method to link a signal with a python method or function, this method can only be executed if python is in an idle status. However, if you want raise the python interrupt signal if a specific signal is emitted, this interruption should be immediately invoked. Therefore
Parameters : | attributeNumber : {int} value : {bool} |
---|
Notes
doctodo
Parameters : | propertyDict : {dict}
|
---|
See also
Parameters : | flags : {int} window flags to set (or-combination, see Qt::WindowFlags) : |
---|
Bases: itom.uiItem
ui(filename, [type, dialogButtonBar, dialogButtons, childOfMainWindow, deleteOnClose]) -> instance of user interface
The class ui wraps a user interface, externally designed and given by a ui-file. If your user interface is a dialog or window, chose ui.TYPEWINDOW as type, if the user interface is a widget (simplest case), chose ui.TYPEDIALOG and your widget will be embedded in a dialog, provided by itom. This dialog can be equiped with a button bar, whose buttons are already connected to itom internal methods. If you then show your dialog in a modal mode, itom knows which button has been clicked in order to accept or reject the dialog.
Parameters : | filename : {str}
type : {int}, optional
dialogButtonBar : {int}, optional
dialogButtons : {dict}, optional
childOfMainWindow : {bool}, optional
deleteOnClose : {bool}, optional
|
---|
Parameters : | widgetName : {}
|
---|
Notes
doctodo
Parameters : | title : {str}
label : {str}
defaultValue : {double}, optional
min : {double}, optional
max : {double}, optional
decimals : {int}, optional
|
---|---|
Returns : | A tuple where the first value contains the current double value. The second value is True if the dialog has been accepted, else False. : |
Parameters : | caption : {str}
startDirectory : {str}
options : {int}, optional
parent : {ui}, optional
|
---|---|
Returns : | The selected directory is returned as absolute path or None if the dialog has been rejected. : |
Parameters : | title : {str}
label : {str}
defaultValue : {int}, optional
min : {int}, optional
max : {int}, optional
step : {int}, optional
|
---|---|
Returns : | A tuple where the first value contains the current integer value. The second value is True if the dialog has been accepted, else False. : |
Parameters : | title : {str}
label : {str}
stringList : {tuple or list}, optional
currentIndex : {int}, optional
editable : {bool}, optional
|
---|---|
Returns : | A tuple where the first value contains the current active or typed string value. The second value is True if the dialog has been accepted, else False. : |
Parameters : | caption : {str}, optional
startDirectory {str}, optional :
filters : {str}, optional
selectedFilterIndex : {int}, optional
options : {int}, optional
parent : {ui}, optional
|
---|---|
Returns : | filename as string or None if dialog has been aborted. : |
See also
Parameters : | caption : {str}, optional
startDirectory : {String}, optional
filters : {str}, optional
selectedFilterIndex : {int}, optional
options : {int}, optional
parent : {ui}, optional
|
---|---|
Returns : | filename as string or None if dialog has been aborted. : |
See also
Parameters : | title : {str}
label : {str}
defaultString : {str}
|
---|---|
Returns : | A tuple where the first value contains the current string value. The second value is True if the dialog has been accepted, else False. : |
Notes
doctodo
Returns : | dialog visible : {bool} |
---|
Notes
doctodo
Parameters : | title : {str}
text : {str}
buttons : {int}, optional
defaultButton : {int}, optional
parent : {ui}, optional
|
---|
Notes
doctodo
Parameters : | title : {str}
text : {str}
buttons : {int}, optional
defaultButton : {int}, optional
parent : {ui}, optional
|
---|
Notes
doctodo
Parameters : | title : {str}
text : {str}
buttons : {int}, optional
defaultButton : {int}, optional
parent : {ui}, optional
|
---|
Parameters : | title : {str}
text : {str}
buttons : {int}, optional
defaultButton : {int}, optional
parent : {ui}, optional
|
---|
Notes
doctodo
Parameters : | modal : {int}
|
---|
timer(interval, callbackFunc, [argTuple]) -> new callback timer
Creates a timer object that continuously calls a python callback function or method with a certain interval. The timer is active after construction and stops when this instance is destroyed or stop() is called.
Parameters : | interval : {double}
callbackFunc: {function or method} :
argTuple: {tuple}, optional :
|
---|
Returns : | status : {bool}
|
---|
This method sets the timeout interval in milliseconds. The timer calls the callback function continuously after this interval (if started)
Starts or restarts the timer with its timeout interval. If the timer is already running, it will be stopped and restarted.