This module defines Interface classes (I/O types)

class core.interface.IBool(**kargs)[source]

Bases: core.interface.IInterface

Bool interface

classmethod default()[source]
class core.interface.ICodeStr(**kargs)[source]

Bases: core.interface.IStr

Source code interface

class core.interface.IData(**kargs)[source]

Bases: core.interface.IStr

Package data interface

class core.interface.IDateTime(**kargs)[source]

Bases: core.interface.IInterface

DateTime

class core.interface.IDict(**kargs)[source]

Bases: core.interface.IInterface

Dictionary interface

classmethod default()[source]

todo

class core.interface.IDirStr(**kargs)[source]

Bases: core.interface.IStr

Directory Path interface

class core.interface.IEnumStr(enum=, []**kargs)[source]

Bases: core.interface.IStr

String enumeration

class core.interface.IFileStr(filter='All (*)', save=False, **kargs)[source]

Bases: core.interface.IStr

File Path interface

class core.interface.IFloat(min=-16777216.0, max=16777216.0, step=1.0, **kargs)[source]

Bases: core.interface.IInterface

Float interface

classmethod default()[source]
class core.interface.IFunction(**kargs)[source]

Bases: core.interface.IInterface

Function interface

class core.interface.IInt(min=-16777216, max=16777216, step=1, **kargs)[source]

Bases: core.interface.IInterface

Int interface

classmethod default()[source]
example()[source]
class core.interface.IInterface(**kargs)[source]

Bases: object

Abstract base class for all interfaces

classmethod default()[source]
class core.interface.IInterfaceMetaClass(name, bases, dic)[source]

Bases: type

IInterface Metaclass Allow to register corresponding python type

all = [IInterface, IStr, ISlice, IFileStr, IDirStr, ITextStr, ICodeStr, IFloat, IInt, IBool, IEnumStr, IRGBColor, IDateTime, ITuple3, ITuple, IFunction, ISequence, IDict, IData]
class core.interface.IInterfaceWidget(node, parent, parameter_str, interface)[source]

Bases: openalea.grapheditor.observer.AbstractListener

Base class for widget associated to an interface

classmethod get_label(node, parameter_str)[source]
get_state()[source]
get_value()[source]
get_widget_value()[source]
internal_data()[source]

return a dict: minimal

notify(sender, event)[source]

Notification sent by node

set_value(newval)[source]
set_widget_value(newval)[source]
unvalidate()[source]
update_state()[source]

Enable or disable widget depending of connection status

class core.interface.IRGBColor(**kargs)[source]

Bases: core.interface.IInterface

RGB Color

class core.interface.ISequence(**kargs)[source]

Bases: core.interface.IInterface

Sequence interface (list, tuple, ...)

classmethod default()[source]
class core.interface.ISlice(**kargs)[source]

Bases: core.interface.IInterface

String interface

class core.interface.IStr(**kargs)[source]

Bases: core.interface.IInterface

String interface

classmethod default()[source]
class core.interface.ITextStr(**kargs)[source]

Bases: core.interface.IStr

Long String interface

class core.interface.ITuple(**kargs)[source]

Bases: core.interface.IInterface

Tuple

class core.interface.ITuple3(**kargs)[source]

Bases: core.interface.IInterface

Tuple3

classmethod default()[source]
class core.interface.IWidgetMetaClass(name, bases, dic, **kargs)[source]

Bases: type

InterfaceWidget Metaclass

class core.interface.InterfaceWidgetMap(*args)[source]

Bases: dict

Singleton class to map Interface with InterfaceWidget InterfaceWidgetMap inherits from dict class

declare_interface(interface, widget=None)[source]

Declare an interface and its optional widget @param interface : IInterface class object @param widget : IInterfaceWidget class object

class core.interface.TypeInterfaceMap[source]

Bases: dict

Singleton class to map Interface with standard python type InterfaceWidgetMap inherits from dict class

declare_interface(type, interface)[source]

Declare an interface and its optional widget

Parameters:
  • interface -- IInterface class object
  • type -- Python type
class core.interface.TypeNameInterfaceMap[source]

Bases: dict

Singleton class to map Interface Name with interface type InterfaceWidgetMap inherits from dict class

declare_interface(name, interface)[source]

Declare an interface and its optional widget

Parameters:
  • interface -- IInterface class object
  • type -- Python type

Previous topic

<no title>

Next topic

Simple Tutorial

This Page