<br><font size=3 face="Times New Roman">Dear Kent,</font>
<br>
<br><font size=3><tt>>>You can look up the function in the globals()
dict, or you can import <br>
>>__main__, which is the top-level module, and use getattr() on it.
Or you <br>
>>could wrap your functions in a class...<br>
>><br>
>>def OnMenuFindMe():<br>
>> print 'You found me'<br>
>><br>
>>f = globals()['OnMenuFindMe']<br>
>><br>
>>f()<br>
>><br>
>>import __main__<br>
>><br>
>>g = getattr(__main__, 'OnMenuFindMe')<br>
>>g()<br>
>><br>
>>Kent<br>
</tt></font>
<br><font size=3 face="Times New Roman">Many thanks.</font>
<br><font size=3 face="Times New Roman"><br>
<br>
Yours sincerely, <br>
______________________________<br>
János Juhász</font><font size=3> </font><font size=3 color=#cc0000 face="Times New Roman"><br>
</font>