> Would it be possible to modify foalrc so that a menu item changed itself
> when it was ran?
> Is there someway to modify the foalrc to do this, or does it require
> modifications to the foal source?
It would require mods to the source. Since Foal is written in Python,
making self-modifying menus should actually be fairly trivial, though. The
question is whether there is a nice API to do it that would be generally
useful.
You could just have a new menu item type "toggleitem" which would be of the
form:
toggleitem("name", "icon1", "command1", "icon2", "command2")
which would toggle between the two commands/icons. Similarly, you could
have a "selectmenu" type, which would display the icon of the sub-item last
selected.
The question is whether these are useful enough to become in-built, like
"verifymenu", or whether they can be implemented cunningly in the foalrc,
via scripting?
Ideally, I'd use the scripting approach to allow you to define menu & item
sub-types in scripts.
James "Wez" Weatherall
--
"The path to enlightenment is /usr/bin/enlightenment"
Laboratory for Communications Engineering, Cambridge - Tel : 766513
AT&T Labs Cambridge, UK - Tel : 343000
Received on Mon Jun 4 04:16:47 2001
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:38:25 EDT