David Sackett wrote:
> Hi,
>
> Is there a way to stop ObjectLists from displaying scroll bars? I have
> several small tables and would rather they each requested the amount
> of space required to show all their columns and rows. I have had some
> success by creating fixed width columns then manually setting the
> objectlists size request but I would rather allow the columns to set
> their own width. Perhaps there is a more approapriate widget than an
> objectlist? I have looked at the table widget however I like all the
> column hiding and sorting type features and don't want to re-implement
> them.
>
> I'm quite new to Kiwi and pygtk but finding it very easy to work with
> so far. Thanks for the great framework.
Hi David,
ObjectList and ObjectTree are gtk.ScrolledWindow subclasses, so you can
use the set_policy [1] method, with gtk.POLICY_NEVER and this will
prevent the scrollbars ever happening.
Something like:
my_object_list.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
"Never use horizontal scrollbars, and only use vertical scrollbars when
they are required."
[1]
http://www.pygtk.org/pygtk2reference/class-gtkscrolledwindow.html#method-gtkscrolledwindow--set-policy
Ali
_______________________________________________
Kiwi mailing list
[email protected]
http://www.async.com.br/mailman/listinfo/kiwi