Update of /cvsroot/freevo/freevo/src/image
In directory sc8-pr-cvs1:/tmp/cvs-serv7101/src/image

Modified Files:
        imageitem.py 
Log Message:
Added support for 'geometry' attribute ( getattr() now returns 'widthxheight', like 
videoitem )


Index: imageitem.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/image/imageitem.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** imageitem.py        2 Jul 2003 20:10:28 -0000       1.10
--- imageitem.py        23 Jul 2003 07:12:12 -0000      1.11
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.11  2003/07/23 07:12:12  gsbarbieri
+ # Added support for 'geometry' attribute ( getattr() now returns 'widthxheight', 
like videoitem )
+ #
  # Revision 1.10  2003/07/02 20:10:28  dischi
  # added to mmpython support, removed old stuff
***************
*** 73,76 ****
--- 76,94 ----
  
          self.image_viewer = viewer.get_singleton()
+ 
+     def getattr(self, attr):
+         """
+         return the specific attribute as string or an empty string
+         """
+         if attr in [ "geometry" ]:
+             try:
+                 image = self.info
+                 if attr == 'geometry':
+                     print "geometry=%sx%s" % (image.width, image.height)
+                     return '%sx%s' % (image.width, image.height)
+             except:
+                 pass
+             
+         return Item.getattr(self, attr)
          
  




-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to