diff options
author | Wade Brainerd <wadetb@gmail.com> | 2009-12-09 19:35:07 (GMT) |
---|---|---|
committer | Wade Brainerd <wadetb@gmail.com> | 2009-12-09 19:35:07 (GMT) |
commit | 032104042de6bfa29e32e8481194997c4f8f130d (patch) | |
tree | 25c372e5cbabb2c9820c029da3c64a5b26302fa5 | |
parent | fb101a4abe47a560393e1f9c7cb13c0d1a982cf7 (diff) |
Disable videopaint when camera cannot be found.
-rw-r--r-- | TODO | 1 | ||||
-rwxr-xr-x | colors.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -2,7 +2,6 @@ Colors! + Add the current brush above the new brush in the palette window. + Add MIME type, link to gallery site. -+ Help dropdown - text based is fine. + Publish tutorials on DailyMotion + New toolbars. + Reimplement reference image as a way to set the initial canvas. @@ -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.') |