[pygtk] gtk.Assistant
Mauro Giacomini
aragorn78it at yahoo.it
Fri Oct 15 02:08:12 WST 2010
Hello, I'm finally managed to get Assistant Widget works.
As Pietro told me, I'm be able to collect data and info from a page and
use them somewhere else in
the application.
I missed one important step: if I collect an info from page one and I
want to display that info in
a label in page two, for example, I must create a label widget
previously on page two; then I connect
the prepare signal and update the text of the label to display what I want.
I will make further test, but I am on the right track.
Thanks again Pietro and Chaouche.
Mauro
Il 12/10/2010 21:56, Pietro Battiston ha scritto:
> Il giorno mar, 12/10/2010 alle 21.16 +0200, Mauro Giacomini ha scritto:
>
>> Hello,
>> I'm not able to use the assistant the way I want :(
>> Perphas this widget is not solution for my needs.
>>
>> In general, there is a way to use the assistant widget in this way:
>> - Page One: the user selects various option via a gui
>> - Page Two: the app use this option to choose which text to display to
>> continue the configuration;
>>
> Sure you can: as I said, connect to the "changed" options of widgets in
> page one, and update, or even create from scratch page two accordingly.
>
> Or even better, connect to the "apply" signal of the Assistant and
> create one page at a time. Just take care of the fact that the user may
> press the "back" button (and "forward" again).
>
>
>
>> From what I understand, the pages are created all at once
>>
> Not necessarily. You just create them when you want.
>
>
>> and displayed
>> on screen one at a time.
>> But in this way I can't never collect data from page one and use it on
>> page two; I can only collect
>> this data in the last page of the assistant, a page of type
>> gtk.ASSISTANT_PAGE_SUMMARY.
>> Am I right?
>>
> No.
>
> If you still have problems using signals right, please provide some
> almost working code.
>
>
>> Do you know any pygtk application that has a wizard configuration so I
>> can study the source code?
>>
> http://www.google.com/codesearch?hl=it&sa=N&q=gtk.Assistant+lang:python
>
> And I guess ubiquity does too.
>
> Pietro
>
>
More information about the pygtk
mailing list