Modules for graphical manipulation of objects in pario.
Editor for Parameters objects.
Create a Parameters object to edit
>>> import pario.parameters
>>> p = pario.parameters.Parameters()
>>> p._set('velocity', 5, 'm/s', doc='out speed')
Easiest way to use paredit is through the _edit() method
>>> p._edit()
The same functionality is provided with pario.paredit.paredit():
>>> paredit(p)
A button for opening a dialog for editing an array.
A QLineEdit for editing floats, ints and strings.
A set of radioboxes for selecting one of several possibilities. possibilities should be a comma-separated list of possible values or of the form “0=first option, 1=second option”.
If value_wrap is not None, it must be an integer determing the maximum width of the value field (by word-wrapping).
A class that allows graphical editing of model parameter.
See paredit() for a description of the arguments.
Returns True is all parameter are valid. Otherwise the cursor is set to the invalid parameter and False is returned.
A set of checkboxes for selecting one or more of several possibilities. possibilities should be of the form “0=first flag, 1=second flag”.
Creates a parameter dialog and updates par.
Parameters : | par : Parameters instance
dialog : None | ParEdit instance
names : None | sequence of strings
group : None | string
title : string
header : bool
callback : None | callable(par, done)
wait : bool
|
||||
---|---|---|---|---|---|
Returns : | QtGui.QDialog instance |
Graphical editor for 1D record or 2D ordinary numpy arrays.
>>> a = np.random.rand(5, 3)
>>> anew = arrayedit(a)
>>> b = np.rec.fromarrays([
... [1, 2, 3, 4],
... ['a', 'dd', '12', 'a b c'],
... [1.1, 2, 3, 4],
... ], names='time(s),label,diameter')
>>> bnew = arrayedit(b)
A class that allows graphical editing of a numpy (field) array.
Parameters : | arr : numpy array
parent : None | window
names : None | sequence of strings
formats : string
editable : bool
resizable : bool
|
---|
Attributes
error(message) | Signal emitted on invalid assignments and other errors. |
newData(arr) | Signal emitted when the underlying array is replaced. This signal will only be emitted if resizable is true. |
A class that allows graphical editing of a numpy (field) array.
Parameters : | arr : numpy array | ArrayModel
parent : None | window
title : string
names : None | sequence of strings
formats : string
editable : bool
resizable : bool
|
---|
Attributes
error(message) | Signal emitted on invalid assignments and other errors. |
newData(arr) | Signal emitted when the underlying array is replaced. This signal will only be emitted if resizable is true. |
A QTableView subclass with an improved sizeHint().
Parameters : | parent : widget
maxScreenFraction : float
tableMargin : int
|
---|
A dialog that asks for name and data type for a new column.
Creates a dialog for editing a numpy array.
Parameters : | arr : numpy array
dialog : None | ArrayEditDialog instance
title : string
names : None | sequence of strings
formats : string
editable : bool
resizable : bool
wait : bool
|
---|---|
Returns : | If wait is True, the updated array is returned. Otherwise the dialog is returned. |
An graphical editor element and particle content.