diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-02 20:13:35 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-02 20:13:35 (GMT) |
commit | 8ea6fd4da24f05214c65d891bc1ccf02e0752f98 (patch) | |
tree | 65acc190a53d072a7bfe666754a8f81d61017bff /constants.py | |
parent | 16da6678b2a05844ef30de7ee44c756c0c9466e1 (diff) |
nice button gfx...
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@843 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'constants.py')
-rw-r--r-- | constants.py | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/constants.py b/constants.py index 8ac1ff5..d1c6398 100644 --- a/constants.py +++ b/constants.py @@ -74,8 +74,8 @@ class Constants: colorGreen.init_rgba( 0, 255, 0, 255) colorBlue = Color() colorBlue.init_rgba( 0, 0, 255, 255) - colorHilite = Color() - colorHilite.init_gdk( sugar.graphics.style.COLOR_BUTTON_GREY ) + colorButton = Color() + colorButton.init_gdk( sugar.graphics.style.COLOR_BUTTON_GREY ) gfxPath = os.path.join(activity.get_bundle_path(), "gfx") soundClick = os.path.join(gfxPath, 'photoShutter.wav') @@ -137,8 +137,11 @@ class Constants: maxReduceSvg = None infoOnSvg = None xoGuySvgData = None - camImg = None - micImg = None + + recImg = None + recRedImg = None + recCircleImg = None + recInsensitiveImg = None def __init__( self, ca ): self.__class__.activityId = ca._activity_id @@ -189,12 +192,22 @@ class Constants: self.__class__.xoGuySvgData = xoGuySvgFile.read() xoGuySvgFile.close() - camImgFile = os.path.join(self.__class__.gfxPath, 'device-camera.png') - camImgPixbuf = gtk.gdk.pixbuf_new_from_file(camImgFile) - self.__class__.camImg = gtk.Image() - self.__class__.camImg.set_from_pixbuf( camImgPixbuf ) - - micImgFile = os.path.join(self.__class__.gfxPath, 'device-microphone.png') - micImgPixbuf = gtk.gdk.pixbuf_new_from_file(micImgFile) - self.__class__.micImg = gtk.Image() - self.__class__.micImg.set_from_pixbuf( micImgPixbuf ) + recFile = os.path.join(self.__class__.gfxPath, 'media-record.png') + recPixbuf = gtk.gdk.pixbuf_new_from_file(recFile) + self.__class__.recImg = gtk.Image() + self.__class__.recImg.set_from_pixbuf( recPixbuf ) + + recRedFile = os.path.join(self.__class__.gfxPath, 'media-record-red.png') + recRedPixbuf = gtk.gdk.pixbuf_new_from_file(recRedFile) + self.__class__.recRedImg = gtk.Image() + self.__class__.recRedImg.set_from_pixbuf( recRedPixbuf ) + + recCircleFile = os.path.join(self.__class__.gfxPath, 'media-circle.png') + recCirclePixbuf = gtk.gdk.pixbuf_new_from_file(recCircleFile) + self.__class__.recCircleImg = gtk.Image() + self.__class__.recCircleImg.set_from_pixbuf( recCirclePixbuf ) + + recInsFile = os.path.join(self.__class__.gfxPath, 'media-insensitive.png') + recInsPixbuf = gtk.gdk.pixbuf_new_from_file(recInsFile) + self.__class__.recInsensitiveImg = gtk.Image() + self.__class__.recInsensitiveImg.set_from_pixbuf( recInsPixbuf )
\ No newline at end of file |