Il giorno mar, 12/10/2010 alle 18.53 +0200, Mauro Giacomini ha scritto:
> Yes, you undestood correcty what I want to do.
> I have already tried to connect a signal from a button (user click when
> the treeview
> is sorted) to call "set_page_complete(page, True)", but, as you said
> previously, this don't
> block the flow of code, so I can't collect the data in the next page.
> [...]
> Now I want to try another way I found in this list, this post
> (http://www.mail-archive.com/[email protected]/msg19549.html).
> In step_two() I can call "get_children" from the assistant to retrieve
> the previous page (step_one)
> and from this page I call "get_data" from the treeview.
> I will try this ...
The fact that the flow of code is not blocked should not be a problem at
all.
And there is no particular need to use get_children, you can just
replace, for instance
page_n = gtk.SomeWidget()
with
self.page_n = gtk.SomeWidget()
and you can do that not just with whole pages, but with single widgets
too (possibly organizing them in lists/dictionaries if there are many).
If you use Glade and a gtk.Builder, it's even easier (with
get_object() ).
Pietro
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/