traitsui.instance_choice module¶
Defines the various instance descriptors used by the instance editor and instance editor factory classes.
-
class
traitsui.instance_choice.
InstanceChoice
¶ Bases:
traitsui.instance_choice.InstanceChoiceItem
-
get_name
(object=None)¶ Returns the name of the item.
-
get_object
()¶ Returns the object associated with the item.
-
is_compatible
(object)¶ Indicates whether a specified object is compatible with the item.
-
-
class
traitsui.instance_choice.
InstanceChoiceItem
¶ Bases:
traits.has_traits.HasPrivateTraits
-
get_name
(object=None)¶ Returns the name of the item.
-
get_object
()¶ Returns the object associated with the item.
-
get_view
()¶ Returns the view associated with the object.
-
is_compatible
(object)¶ Indicates whether a specified object is compatible with the item.
-
is_droppable
()¶ Indicates whether the item supports drag and drop.
-
is_selectable
()¶ Indicates whether the item can be selected by the user.
-
-
class
traitsui.instance_choice.
InstanceDropChoice
¶
-
class
traitsui.instance_choice.
InstanceFactoryChoice
¶ Bases:
traitsui.instance_choice.InstanceChoiceItem
-
get_name
(object=None)¶ Returns the name of the item.
-
get_object
()¶ Returns the object associated with the item.
-
is_compatible
(object)¶ Indicates whether a specified object is compatible with the item.
-
is_droppable
()¶ Indicates whether the item supports drag and drop.
-
is_selectable
()¶ Indicates whether the item can be selected by the user.
-