Using Python and Gtk3, I have created a Gtk.TreeView
and put it inside a Gtk.ScrolledWindow
. I don't like horizontal scroll bars, so I removed it using the Gtk.PolicyType.NEVER
, but now I can't resize the window in that direction.
So the question is: how can I get ride of the horizontal scroll bar and at the same time to be able to resize the window horizontally?
Any help is appreciated!
Obs: this is how I created the ScrolledWindow:
self.scrolledwindow = Gtk.ScrolledWindow()
self.scrolledwindow.set_policy(Gtk.PolicyType.NEVER,
Gtk.PolicyType.AUTOMATIC)
self.add(self.scrolledwindow)