Re: Converting a string to list for submission to easygui multenterb​ox

Pedro Kroger kroger at pedrokroger.net
Tue May 1 16:32:05 EDT 2012


Have you tried to use the function list?:

foo = (1,2,3)
list(foo)

Cheers,

Pedro

--
http://pedrokroger.net



On May 1, 2012, at 5:18 PM, ksals wrote:

> Please help a newbe.  I have a string returned from an esygui
> multchoicebox that looks like
>  this:  ('ksals', '', 'alsdkfj', '3', '') I need to convert this to
>  this:  ['ksals', '', 'alsdkfj', '3', '']
> 
> This is so I can submit this to a multenterbox with 5 fields
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list