pythongtkpygtkwidget

Which GTK widget combination to use for scrollable column of widgets?


I'm working with PyGTK, trying to come up with a combination of widgets that will do the following:

Thanks - I'm new to GTK.


Solution

  • Now for the trick. If you just do what I've listed above, the contents of the VBox will try to resize vertically as well as horizontally, and you won't get your scrollbar. The solution is to place your VBox in a GtkViewport.

    So the final hierarchy is ScrolledWindow( Viewport( VBox( widgets ) ) ).