[Sugar-devel] Proper use of self.set_canvas function

sumit singh sumit.coder at gmail.com
Sun Jul 19 08:06:00 EDT 2009


Hi everyone,

I would like to discuss about the set_canvas function of the
activity.Activity class, I can understand that it is used to define the
current working area of our activity. But , I want something of the sort
that when I start my activity the current working area would be a
gtk.scrollingwindow from which the user can select from the available
options and then when he clicks on a particular option , the current working
area should become a gtk.Vbox containing other widgets where the actual game
will be played. Now, when the user again wants to select from the available
game options, the current working area should become the gtk.Scrollingwindow
and so on...

So, should everytime I be using the set_canvas method in order to switch b/w
the 2 states or is there any other option.

Regards,
sumit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20090719/2e3c4700/attachment.htm 


More information about the Sugar-devel mailing list