PyANGGui.GMultiChooserEditor¶
- class GMultiChooserEditor¶
A multi component editor.
Details
GMultiChooserEditor editor( gui ); editor.addEditor( 0, "Enter a number:", GMultiChooserEditor::eInt ); editor.setLimits( 0, -4, 4 ); editor.addEditor( 1, "Select a centroid:", GMultiChooserEditor::eSingleObject ); editor.setFilterSingle( 1, gui->getActiveModel()->getType( "GKCentroid" ) ); if( editor.exec() == QDialog::Accepted ){ int number = editor.getInt( 0 ); GKObject * centroid = editor.getObject( 1 ); }else{ }
Synopsis¶
Methods¶
def
__init__()def
addEditor()def
getBool()def
getComboBox()def
getDate()def
getDateTime()def
getDouble()def
getDuration()def
getInt()def
getObject()def
getObjects()def
getString()def
getTime()def
getWidget()def
setFilterMulti()def
setLimits()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- class Type¶
Type of editors
- __init__([parent=None[, fl=Qt.WindowFlags()]])¶
- Parameters:
parent –
QWidgetfl – Combination of
WindowType
Adds an editor with a title and a type. Use pos as a way to access the result later
Get the value of editor at “pos”
Get comboBox
Get the value of editor at “pos”
Get the value of editor at “pos”
Get the value of editor at “pos”
- getDuration(pos)¶
- Parameters:
pos – int
- Return type:
Get the value of editor at “pos”
Get the value of editor at “pos”
Get the value of editor at “pos”
- getObjects(pos)¶
- Parameters:
pos – int
- Return type:
.std.vectorGKObject
Get the value of editor at “pos”
Get the value of editor at “pos”
Get the value of editor at “pos”
Get widget
Sets a function filter to know if an object will be added or not. By default (no filter) all the objects of a given type will be added. If groupBy is true (default is false), all the objects are added, but they are listed grouped by its containers. In this case, filterData must internally be an instance of QList<void*> (the list of containers) instead of a void*.
- setLimits(pos, min, max)¶
- Parameters:
pos – int
min – float
max – float
For Int and Double editors the limits