thanks Niphlod,
I will try this.
On Monday, May 27, 2013 1:50:05 PM UTC-5, greaneym wrote:
>
> How would I display the output of this function in a menu?
>
> def test1():
> a = 20
> b = 30
> myval = a+b
> return myval
>
> These come close but I don't understand how to implement the second one,
>
> response.menu = [
> [CAT(I(_class='icon-home'), T('Home')), False, URL('default',
> 'index')], # shows an icon, not a variable
> [[' name',request.function=='item',URL(r=request,f='item')]] # is
> item the function?
> ]
>
> I want to display a summary variable that changes upon conditions, and
> want to display a sparkline graph below that under the menu item.
>
> thanks for any suggestions,
> Margaret
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.