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{

}

Inheritance diagram of PyANGGui.GMultiChooserEditor

Synopsis

Methods

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:
addEditor(pos, title, type)
Parameters:
  • pos – int

  • title – str

  • typeType

Adds an editor with a title and a type. Use pos as a way to access the result later

getBool(pos)
Parameters:

pos – int

Return type:

bool

Get the value of editor at “pos”

getComboBox(pos)
Parameters:

pos – int

Return type:

QComboBox

Get comboBox

getDate(pos)
Parameters:

pos – int

Return type:

QDate

Get the value of editor at “pos”

getDateTime(pos)
Parameters:

pos – int

Return type:

QDateTime

Get the value of editor at “pos”

getDouble(pos)
Parameters:

pos – int

Return type:

float

Get the value of editor at “pos”

getDuration(pos)
Parameters:

pos – int

Return type:

GKTimeDuration

Get the value of editor at “pos”

getInt(pos)
Parameters:

pos – int

Return type:

int

Get the value of editor at “pos”

getObject(pos)
Parameters:

pos – int

Return type:

GKObject

Get the value of editor at “pos”

getObjects(pos)
Parameters:

pos – int

Return type:

.std.vectorGKObject

Get the value of editor at “pos”

getString(pos)
Parameters:

pos – int

Return type:

str

Get the value of editor at “pos”

getTime(pos)
Parameters:

pos – int

Return type:

QTime

Get the value of editor at “pos”

getWidget(pos)
Parameters:

pos – int

Return type:

QWidget

Get widget

setFilterMulti(pos, objectType)
Parameters:
  • pos – int

  • objectTypeGKType

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*.

setFilterSingle(arg__1, arg__2)
Parameters:
  • arg__1 – int

  • arg__2GKType

setLimits(pos, min, max)
Parameters:
  • pos – int

  • min – float

  • max – float

For Int and Double editors the limits