openalea.vpltk.control package

Submodules

openalea.vpltk.control.abstractcontrolmanager module

class openalea.vpltk.control.abstractcontrolmanager.AbstractControlManager(name=None, object=None)[source]

Bases: object

‘typename’ is the type of control that is manage by this control manager. It can be a python type (ex: ‘int’) or something else (ex: ‘Curve2D’).

dblClick()[source]

Connect double click with edition.

editor()[source]

Permit to edit the control.

Launch edition (inside the thumbnail or in a new widget)

repr()[source]
Returns:string representation of the control to write it on the disk
thumbnail()[source]

Permit to display a thumbnail of the control.

Returns:widget to display
typename = None
openalea.vpltk.control.abstractcontrolmanager.get_manager(type)[source]
openalea.vpltk.control.abstractcontrolmanager.get_managers()[source]

openalea.vpltk.control.controlpanel module

class openalea.vpltk.control.controlpanel.ControlPanel(row=0, column=1)[source]

Bases: PyQt4.QtGui.QTableWidget

add(ctrl)[source]
add_several(ctrls)[source]
new()[source]
reset()[source]
set(ctrl)[source]
set_several(ctrls)[source]
write_all()[source]

openalea.vpltk.control.pythonmanager module

class openalea.vpltk.control.pythonmanager.AbstractPythonObjectManager(typename=None)[source]

Bases: openalea.vpltk.control.abstractcontrolmanager.AbstractControlManager

initWriting(indentation=0)[source]
writeObject(obj, indentation=0)[source]
Returns:representation of object to write
class openalea.vpltk.control.pythonmanager.IntEditor(parent)[source]

Bases: object

getInt()[source]
setInt(obj)[source]
class openalea.vpltk.control.pythonmanager.IntManager(typename='int')[source]

Bases: openalea.vpltk.control.pythonmanager.AbstractPythonObjectManager

createDefaultObject(objtype=None)[source]

create a default object of the type handled by the manager. requires instanciate a new item in the panel. Should be reimplemented

displayThumbnail(obj, id, mode, objectthumbwidth)[source]

display of an object in the Lpy main window Panel, :param obj: the object to display :param id: id of the object in the list :param mode: define if object has mode, :param thumbwidth: width of the thumbnail representing the object in the panel :param objectthumbwidth: width for the representation of the object in the panel Should be reimplemented

fillEditorMenu(menubar, editor)[source]

Function call to fill the menu of the editor

getEditor(parent_widget)[source]

ask for creation of editor. Should be reimplemented

reset(obj)[source]
retrieveObjectFromEditor(editor)[source]

ask for current value of object being edited

setObjectToEditor(editor, obj)[source]

ask for edition of obj with editor. Should be reimplemented

openalea.vpltk.control.pythonmanager.displayIntThumbnail()[source]

Module contents