From 032104042de6bfa29e32e8481194997c4f8f130d Mon Sep 17 00:00:00 2001 From: Wade Brainerd Date: Wed, 09 Dec 2009 19:35:07 +0000 Subject: Disable videopaint when camera cannot be found. --- (limited to 'colors.py') diff --git a/colors.py b/colors.py index 5222c89..37bf493 100755 --- a/colors.py +++ b/colors.py @@ -729,6 +729,7 @@ class Colors(activity.Activity, ExportedGObject): def init_camera (self): self.camera_enabled = False + self.videopaintbtn.set_sensitive(False) try: camera_list = camera.list_cameras() @@ -738,6 +739,7 @@ class Colors(activity.Activity, ExportedGObject): self.camsmall = surface.Surface((240,180),0,self.camcapture) self.camhsv = surface.Surface((240,180),0,self.camcapture) self.camera_enabled = True + self.videopaintbtn.set_sensitive(True) else: log.debug('No cameras found, videopaint disabled.') -- cgit v0.9.1