[pygtk] Couple of questions about IconView
Teemu Harju
teemu.harju at gmail.com
Sat Apr 22 04:15:57 WST 2006
Hi,
I'm kind of new with PyGtk and I've had some problems with IconView.
First of all. I'm trying to use IconView inside a ScrolledWindow, but it
does not seem to work. I mean the scrollbar does not appear even though the
icons don't fit to the screen. I can scroll down the icons with arrow keys,
but I'd like to use the scrollbar.
Secondly, how can I change the style properties of the selection box in
IconView? I mean there are these "stype properties" listed in the class
reference, but how do I ghange them? For example the "selection-box-alpha".
Here is a clip of how I've put the IconView inside the ScrolledWindow...
scrolledWindow = gtk.ScrolledWindow()
scrolledWindow.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
...
iconView = gtk.IconView(model)
...
scrolledWindow.add_with_viewport(iconView)
Best Regards,
Teemu
--
Teemu Harju
http://www.teemuharju.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20060421/22f03052/attachment.html
More information about the pygtk
mailing list