Re: Toolbar in OLPCGames

2007-12-28 Thread Mike C. Fletcher
Ross Andrews wrote: ... > Thank you, this is exactly the sort of response I was looking for! > Happy to help. > This seems to work: > > def build_toolbar(self): > toolbar=super(Activity, self).build_toolbar() > helpbut = ToolButton('activity')#Stock help icon >

Re: Toolbar in OLPCGames

2007-12-27 Thread Ross Andrews
> Recent versions of OLPCGames have a customisation point: > >def build_toolbar( self ): >"""Build our Activity toolbar for the Sugar system > >This is a customisation point for those games which want to >provide custom toolbars when running under Sugar. >""" > >

Re: Toolbar in OLPCGames

2007-12-27 Thread Mike C. Fletcher
Ross Andrews wrote: ... > It is much simpler than the Implode code, but I still have some > problems. Here is what I have in activity.py: > > class Activity(olpcgames.PyGameActivity): > """Your Sugar activity""" > > game_name = 'run' > game_title = _('Game Of Life') > game_siz

Re: Toolbar in OLPCGames

2007-12-27 Thread Ross Andrews
On Dec 27, 2007, at 8:20 PM, Asheesh Laroia wrote: > On Thu, 27 Dec 2007, Ross Andrews wrote: > >> I have been banging my head against this for a while, and I am lost. >> >> I've got a program made using OLPCGames. I am trying to add a toolbar >> to it with some custom buttons, and I can't find an

Re: Toolbar in OLPCGames

2007-12-27 Thread Asheesh Laroia
On Thu, 27 Dec 2007, Ross Andrews wrote: > I have been banging my head against this for a while, and I am lost. > > I've got a program made using OLPCGames. I am trying to add a toolbar > to it with some custom buttons, and I can't find any example code on > the wiki that works. I've looked at Imp

Toolbar in OLPCGames

2007-12-27 Thread Ross Andrews
I have been banging my head against this for a while, and I am lost. I've got a program made using OLPCGames. I am trying to add a toolbar to it with some custom buttons, and I can't find any example code on the wiki that works. I've looked at Implode, an activity kinda like mine, but it isn