A command in a String ?

Peter Moscatt pgmoscatt at optushome.com.au
Wed Apr 13 05:50:33 EDT 2005


</F>,

No, I hadn't included the '*'   Ya learn something every day.

Pete


On Wed, 13 Apr 2005 11:07:13 +0200, Fredrik Lundh wrote:

> 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