Update of /cvsroot/freevo/freevo/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7525/gui
Modified Files:
font.py imagelib.py
Log Message:
adjust to mevas - kaa.mevas move
Index: imagelib.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/gui/imagelib.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** imagelib.py 18 Jun 2005 16:25:17 -0000 1.16
--- imagelib.py 26 Jun 2005 17:04:18 -0000 1.17
***************
*** 39,43 ****
# mevas imagelib
! import mevas
import config
--- 39,43 ----
# mevas imagelib
! import kaa.mevas
import config
***************
*** 60,64 ****
# calculate width
height = (width * float(image_h)) / float(image_w)
! return mevas.imagelib.scale(image, (width, height))
--- 60,64 ----
# calculate width
height = (width * float(image_h)) / float(image_w)
! return kaa.mevas.imagelib.scale(image, (width, height))
***************
*** 67,71 ****
Rotate an image
"""
! return mevas.imagelib.rotate(*arg1, **arg2)
--- 67,71 ----
Rotate an image
"""
! return kaa.mevas.imagelib.rotate(*arg1, **arg2)
***************
*** 74,78 ****
Scale an image
"""
! return mevas.imagelib.scale(*arg1, **arg2)
--- 74,78 ----
Scale an image
"""
! return kaa.mevas.imagelib.scale(*arg1, **arg2)
***************
*** 90,94 ****
if not isinstance(url, (str, unicode)):
# image already is an image object
! image = mevas.imagelib.open(url)
# scale the image if needed
--- 90,94 ----
if not isinstance(url, (str, unicode)):
# image already is an image object
! image = kaa.mevas.imagelib.open(url)
# scale the image if needed
***************
*** 125,129 ****
try:
! image = mevas.imagelib.open(filename)
except:
log.exception('Unknown Problem while loading image %s' % String(url))
--- 125,129 ----
try:
! image = kaa.mevas.imagelib.open(filename)
except:
log.exception('Unknown Problem while loading image %s' % String(url))
Index: font.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/gui/font.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** font.py 25 Jun 2005 08:52:25 -0000 1.6
--- font.py 26 Jun 2005 17:04:18 -0000 1.7
***************
*** 34,38 ****
# python imports
import logging
! import mevas
# freevo imports
--- 34,38 ----
# python imports
import logging
! import kaa.mevas
# freevo imports
***************
*** 83,87 ****
log.debug('Loading font "%s:%s"' % (name, ptsize))
try:
! return mevas.imagelib.load_font(name, ptsize)
except IOError:
log.debug('Couldn\'t load font "%s"' % name)
--- 83,87 ----
log.debug('Loading font "%s:%s"' % (name, ptsize))
try:
! return kaa.mevas.imagelib.load_font(name, ptsize)
except IOError:
log.debug('Couldn\'t load font "%s"' % name)
***************
*** 92,96 ****
log.debug('trying alternate: %s' % alt_fname)
try:
! return mevas.imagelib.load_font(alt_fname, ptsize)
except IOError:
# not good
--- 92,96 ----
log.debug('trying alternate: %s' % alt_fname)
try:
! return kaa.mevas.imagelib.load_font(alt_fname, ptsize)
except IOError:
# not good
***************
*** 100,108 ****
font_warning.append(name)
name = config.GUI_FONT_DEFAULT_NAME
! return mevas.imagelib.load_font(name, ptsize)
# init mevas font (imlib2)
! mevas.imagelib.add_font_path(config.FONT_DIR)
# the font cache object for 'get'
--- 100,108 ----
font_warning.append(name)
name = config.GUI_FONT_DEFAULT_NAME
! return kaa.mevas.imagelib.load_font(name, ptsize)
# init mevas font (imlib2)
! kaa.mevas.imagelib.add_font_path(config.FONT_DIR)
# the font cache object for 'get'
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog