Jeff Nyman <[EMAIL PROTECTED]> writes:
> from glob import glob
> DC_List = glob('\\\\vcdcflx006\\Flex\\Sites\\*\\')
> DC_List = ['Baltimore', 'Birmingham', 'Cincinnati', 'Cleveland',
> LosAngeles']
> The problem is that I need to pass this list to a list control in a
> wxWidgets application. In order to do that, I need to pass in a list
> like this:
>
> [ ('Baltimore', ''), ('Birmingham', ''), ('Cincinnati', ''),
> ('Cleveland', ''), ('LosAngeles', '') ]
That's not hard:
[ (x,'') for x in DC_List ]
Yours
Karsten
--
http://mail.python.org/mailman/listinfo/python-list