dhkuhl wrote:
>
> Is there a function to give the number of rows in a treeview?
>
I used built-in python len() function, like this: count = len(self.model)
I suppose you can use it however the lists are implemented in language you
are using.
--
View this message in context:
http://www.nabb
Kristian Rietveld wrote:
> Also note that for *lists* (so no parent nodes, no children) a call
> like gtk_tree_model_iter_n_children (model, NULL) will suffice.
>
>
> -kris.
>
> On Thu, Sep 24, 2009 at 1:32 PM, Tadej Borovšak wrote:
>> Hello.
>>
>>> Is there a function to give the number of row
Also note that for *lists* (so no parent nodes, no children) a call
like gtk_tree_model_iter_n_children (model, NULL) will suffice.
-kris.
On Thu, Sep 24, 2009 at 1:32 PM, Tadej Borovšak wrote:
> Hello.
>
>> Is there a function to give the number of rows in a treeview?
>
> You probably want to
Hello.
> Is there a function to give the number of rows in a treeview?
You probably want to know how many lines are in the GtkTreeModel that
serves as data source for GtkTreeView. There is no simple function
that would serve you this number, so you'll have to take one of the
two available paths: