Package pajammin :: Package util :: Module leveleditor :: Class LevelEditorTool
[show private | hide private]
[frames | no frames]

Type LevelEditorTool

object --+
         |
        LevelEditorTool

Known Subclasses:
BackgroundTool, EntityTool, GroundTool, PathTool

A level editor tool. Specific tools are defined by subclassing this class.
Method Summary
  __init__(self, level, display, subtool_icons)
  activate(self)
Turn this tool on.
  deactivate(self)
Turn this tool off.
  select_subtool(self, subtool)
Select the subtool corresponding to the given icon
  set_level(self, level)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
Return repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
Return str(x)...

Instance Variable Summary
NoneType shortcut: The keyboard shortcut for this tool, or None if this tool doesn't have a keyboard shortcut.

Method Details

__init__(self, level, display, subtool_icons)
(Constructor)

Overrides:
__builtin__.object.__init__

activate(self)

Turn this tool on.

deactivate(self)

Turn this tool off.

select_subtool(self, subtool)

Select the subtool corresponding to the given icon

set_level(self, level)


Instance Variable Details

shortcut

The keyboard shortcut for this tool, or None if this tool doesn't have a keyboard shortcut.
Type:
NoneType
Value:
None