Ryan Roth wrote:
Why doesn't this code work? I get the error tuple not callable:
...
ha_menu_items+=[menu.MenuItem(room[0],(self.createDeviceMenu, room[0]))]
# <---here is what causes the error, but why?
try:
ha_menu_items+=[menu.MenuItem(room[0],self.createDeviceMenu,(room[0],))]
or:
ha_menu_items+=[menu.MenuItem(room[0],self.createDeviceMenu,room[0])]
-Rob
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users