A command in a String ?

Fredrik Lundh fredrik at pythonware.com
Wed Apr 13 05:07:13 EDT 2005


Peter Moscatt wrote:

>>     strings = "string1", "string2", "string3"
>>     fm = OptionMenu(root, xx, *strings)
>
> Thanks for the help on this.  Yea the 'exec' did the trick.
> The second example just placed all the strings in one option button.

did you include the asterisk?  if you remove that, you get one option.  if you
include it, you get three options.

</F> 






More information about the Python-list mailing list