scrolled window inside a container

View: New views
3 Messages — Rating Filter:   Alert me  

scrolled window inside a container

by Petsas Athanasios :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello to all,

This is my fisrt message in the list. I hope that someone can help me here :)

I am developing an graphical interface for an application. What I want to do is
to embed a scrolling treeview in an hbox in this graphical interface. The problem
is that although I can embed the treeview, I can't make it support scolling. I
tried some methods that the gtk.widget provides, such as

set_scroll_adjustments
(hadjustment, vadjustment)
set_set_scroll_adjustments(signal name)

but I couldn't achieve something...

In the Internet and in the pyGTK tutorial as well, the only examples that esixt
are only about making a scrolled widget by putting it in a scrolled window...

I've also searched in the current mailing list's archives, but I didn't find a solution.

All I want is just an example on how to do that. For instance how to support
a scrolling  treview (or generally a scrolling widget) inside a container such as
an hbox.

Thank you in advance,
Thanasis

_______________________________________________
pygtk mailing list   pygtk@...
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: scrolled window inside a container

by Neil Muller-10 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Oct 28, 2009 at 3:09 PM, Petsas Athanasios <petsas@...> wrote:
>
> All I want is just an example on how to do that. For instance how to support
> a scrolling  treview (or generally a scrolling widget) inside a container
> such as
> an hbox.

As you'll see demonstrated in several of the pygtk examples, wrapping
the TreeView in a scrolled window first is the way to go here.
gtk.ScrolledWindow is just another widget container, so it can be
included in a HBox like any other widget.

--
Neil Muller
drnlmuller@...

I've got a gmail account. Why haven't I become cool?
_______________________________________________
pygtk mailing list   pygtk@...
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: scrolled window inside a container

by Petsas Athanasios :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thank you so much!!! I didn't notice that..
On Wed, Oct 28, 2009 at 3:21 PM, Neil Muller <drnlmuller%2Bgtk@...> wrote:
On Wed, Oct 28, 2009 at 3:09 PM, Petsas Athanasios <petsas@...> wrote:
>
> All I want is just an example on how to do that. For instance how to support
> a scrolling  treview (or generally a scrolling widget) inside a container
> such as
> an hbox.

As you'll see demonstrated in several of the pygtk examples, wrapping
the TreeView in a scrolled window first is the way to go here.
gtk.ScrolledWindow is just another widget container, so it can be
included in a HBox like any other widget.

--
Neil Muller
drnlmuller@...

I've got a gmail account. Why haven't I become cool?


_______________________________________________
pygtk mailing list   pygtk@...
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/