Sumit, I don't see anything wrong with what you are proposing. Another option you have, not necessarily better, is to define a VBox holding the two different views of your Activity: the one where the game is played and the one where you set up options. By hiding one and showing the other you can switch from one view to the other. I do something like this in all three of my Activities (Read Etexts, View Slides, Get Internet Archive Books) where I divide the screen vertically in half for some functions. See the screenshots on ASLO to see what I'm talking about. I like how this works and looks. Your mileage may vary.
James Simmons > Date: Sun, 19 Jul 2009 17:36:00 +0530 > From: sumit singh <sumit.co...@gmail.com> > Subject: [Sugar-devel] Proper use of self.set_canvas function > To: de...@lists.laptop.org, sugar-devel@lists.sugarlabs.org > Message-ID: > <b694aa9e0907190506v5fe78794x1126211c173c0...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > 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. _______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel