[pygtk] scrolled window issue

Laszlo Pandy laszlok2 at gmail.com
Wed Jun 24 22:45:23 WST 2009


In your glade file I see you have a Table and TextView inside some
ScrolledWindows. However unlike TextView, Table does not have
scrollable support. This means it does not know how to scroll itself
when there are scrollbars around it. A viewport allows you to put any
widget inside a ScrolledWindow.

To solve the problem, open your glade file, and delete the Table, add
a Viewport inside the ScrolledWindow and then re-add your Table inside
the Viewport.

Laszlo

On Thu, Jun 18, 2009 at 11:32 PM, anusha k<anuhacks at gmail.com> wrote:
> hi,
>
> I am using glade and pygtk.In my glade file,I added a frame.Inside a frame i
> added a scrolled window.In scroll window i added a table.But the issue is
> the scroll window is not getting active when seen on a small screen or
> whenever needed.
>
> I pasted my code here:
> glade : http://pastebin.com/m69b093a6
> py file : http://pastebin.com/m4b8d9483
>
> I am getting this error :GtkWarning: gtk_scrolled_window_add(): cannot add
> non scrollable widget use gtk_scrolled_window_add_with_viewport() instead
>
> I tried gtk_scrolled_window_add_with_viewport() but does not make any
> difference.So whats the issue behind this.
>
> Njoy the share of Freedom :)
> Anusha Kadambala
>
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>


More information about the pygtk mailing list