hallo,
ich befass mich grad mit pyGTK und wollte wissen wie ich die größe von einem gtk.Image herausfinden kann.. ich hab schon die ganze API abgesucht, finde aber absolut nichts.. .get_width() hat auch nocht geholfen... kann mit jemand helfen?
mfg blan
gtk.Image breite und höhe
Bin mir nicht sicher, aber du müsstest eigentlich an das pixbuf obj kommen können und dann die größe mit gtk.gdk.Pixbuf.get_height/widthThe gtk.Image widget displays an image. Various kinds of objects can be displayed as an image; usually, you would load a gtk.gdk.Pixbuf ("pixel buffer") from a file, and then display it. The convenience method set_from_file() will read the file and automatically create a pixbuf that is added to the gtk.Image widget.
abfragen.