From 9abaa821dadab2825fc1939bcda8c5858fb96f25 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 26 Jul 2011 15:44:25 +0000 Subject: have plugin append to MEDIA_SHAPES list; NO_IMPORT list --- (limited to 'plugins') 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', -- cgit v0.9.1