diff options
author | Walter Bender <walter.bender@gmail.com> | 2011-07-26 15:44:25 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2011-07-26 15:44:25 (GMT) |
commit | 9abaa821dadab2825fc1939bcda8c5858fb96f25 (patch) | |
tree | 81732a5085858c8133e066e8836d89bd78b610e1 /plugins/camera_sensor | |
parent | ea2b5ae10a82a359865fbfced6d870a6477b432a (diff) |
have plugin append to MEDIA_SHAPES list; NO_IMPORT list
Diffstat (limited to 'plugins/camera_sensor')
-rw-r--r-- | plugins/camera_sensor/camera_sensor.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/camera_sensor/camera_sensor.py b/plugins/camera_sensor/camera_sensor.py index 3b32be9..66ff23c 100644 --- a/plugins/camera_sensor/camera_sensor.py +++ b/plugins/camera_sensor/camera_sensor.py @@ -30,6 +30,7 @@ from plugins.plugin import Plugin from TurtleArt.tapalette import make_palette from TurtleArt.talogo import media_blocks_dictionary, primitive_dictionary from TurtleArt.tautils import get_path, debug_output +from TurtleArt.taconstants import MEDIA_SHAPES, NO_IMPORT class Camera_sensor(Plugin): @@ -120,6 +121,10 @@ is pushed to the stack'), help_string=_('camera output'), content_block=True) + NO_IMPORT.append('camera') + MEDIA_SHAPES.append('camerasmall') + MEDIA_SHAPES.append('cameraoff') + def start(self): ''' Initialize the camera if there is an camera block in use ''' if len(self._parent.block_list.get_similar_blocks('block', |