ScrolledWindow.setPolicy

Sets the scrollbar policy for the horizontal and vertical scrollbars.

The policy determines when the scrollbar should appear; it is a value from the gtk.types.PolicyType enumeration. If gtk.types.PolicyType.Always, the scrollbar is always present; if gtk.types.PolicyType.Never, the scrollbar is never present; if gtk.types.PolicyType.Automatic, the scrollbar is present only if needed (that is, if the slider part of the bar would be smaller than the trough — the display is larger than the page size).

Parameters

hscrollbarPolicy gtk.types.PolicyType

policy for horizontal bar

vscrollbarPolicy gtk.types.PolicyType

policy for vertical bar