Re: [PyGObject] invisible paths between Gtk.TreeView.get_visible_range() ?
- From: Reuben Rissler <silrep emypeople net>
- To: python-hackers-list gnome org
- Subject: Re: [PyGObject] invisible paths between Gtk.TreeView.get_visible_range() ?
- Date: Thu, 14 Feb 2019 08:00:55 -0500
On 02/14/2019 05:17 AM, c.buhtz--- via python-hackers-list wrote:
Mystic...
mytree.get_visible_range()
returns always None no matter how much rows are in it.
Why?
You need to run this method after the calculations are done. Example:
GLib.idle_add(self.event_after )
def event_after(self):
print(self.treeview.get_visible_range())
On 2019-02-14 10:21 "c.buhtz--- via python-hackers-list"
<python-hackers-list gnome org> wrote:
The documentation about Gtk.TreeView.get_visible_range() says:
"Returns the first and last visible path. Note that there may be
invisible paths in between."
<https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/TreeView.html#Gtk.TreeView.get_visible_range>
I have stomachache about the fact that there could be "invisible paths
in between". But the documentation here keeps mystic.
Why is it so? In which cases are there invisible paths?
I need to prevent this situations.
_______________________________________________
python-hackers-list mailing list
python-hackers-list gnome org
https://mail.gnome.org/mailman/listinfo/python-hackers-list
_______________________________________________
python-hackers-list mailing list
python-hackers-list gnome org
https://mail.gnome.org/mailman/listinfo/python-hackers-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]