Logo Search packages:      
Sourcecode: kde-hal-device-manager version File versions  Download package

def Representation::Representation::load_and_scale_icon (   self,
  path 
)

Helper function for loading an icon and scaling it to 16x16

Definition at line 11 of file Representation.py.

00011                                        :
        """Helper function for loading an icon and scaling it to 16x16"""
        #orig = gtk.gdk.pixbuf_new_from_file(path)
        #icon = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, True, 8, 16, 16)
        #orig.scale(icon, 0, 0, 16, 16,
        #           0, 0,
        #           16.0/orig.get_width(),
        #           16.0/orig.get_height(),
        #           gtk.gdk.INTERP_HYPER)
        #return icon
      print "load and scale icon here!"
      return "icon"

    def __init__(self):


Generated by  Doxygen 1.6.0   Back to index