gtkscrolledwindow

Manually scroll to a child in a Gtk.ScrolledWindow

隐身守侯 提交于 2020-07-22 06:07:51
问题 I'm developping a GTK app (in Python with PyGTK) and I need to scroll manually the Gtk.ScrolledWindow to a child it contains to show it in the screen. The ScrolledWindow contains a ListBox, which contains a lot of ListBoxRow. self.currencySwitcher = CurrencySwitcher(self) self.currencySwitcherBox = Gtk.ScrolledWindow(vexpand = True) self.currencySwitcherBox.add(self.currencySwitcher) CurrencySwitcher herits of Gtk.ListBox: class CurrencySwitcher (Gtk.ListBox): # ... I have a search system to

Glade and deprecated gtk properties

家住魔仙堡 提交于 2019-12-25 04:27:33
问题 i've been trying to run a software where i've built the UI by Glade. Glade then transform the UI in an XML file, and then in Python i just load that file. But i've a problem with (maybe) deprecated properties of gtk objects. This is what the interpreter says: Unknown property: GtkScrolledWindow.min-content-width self.__builder.add_from_file('UI2.glade') /home/jimmy/Documenti/linguaggi_dinamici/progetto/collega_GUI.py:37: GtkWarning: Unknown property: GtkScrolledWindow.min-content-height self.