Re: Guification of console app

2005-11-25 Thread metiu
I like it! Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Guification of console app

2005-11-25 Thread metiu
press call split in microsteps and have the app call it, so you can use an EVT_IDLE call from the GUI, but maybe there's a better way... Thanks again Peter Hansen ha scritto: > metiu wrote: > > Say I have a console app that does something in three steps: > > - opens a f

Guification of console app

2005-11-24 Thread metiu
Say I have a console app that does something in three steps: - opens a file - transfers the file through a serial port - does some elaborations and I want to build a GUI around it that, for example, sets the file name to open or starts the different steps. I started using wxPython (actually boa-c

Re: Converting a flat list to a list of tuples

2005-11-22 Thread metiu uitem
Thanks for the answer... yes the example was wrong! -- http://mail.python.org/mailman/listinfo/python-list

Converting a flat list to a list of tuples

2005-11-22 Thread metiu uitem
Say you have a flat list: ['a', 1, 'b', 2, 'c', 3] How do you efficiently get [['a', 1], ['b', 2], ['c', 3]] I was thinking of something along the lines of: for (key,number) in list: print key, number but it's not working... Thank you -- http://mail.python.org/mailman/listinfo/python-list