Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/plugins/camera_sensor/camera_sensor.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/camera_sensor/camera_sensor.py')
-rw-r--r--plugins/camera_sensor/camera_sensor.py5
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',