Re: Cartoonify Myself

2011-05-17 Thread andy baxter
On 17/05/11 20:26, Chris M. Bartos wrote: Hi, Is there a Python module that can "cartoonify" a picture of myself? There's got to be an algorithm out there somewhere, right? If there is a way to cartoon a single picture, could you cartoonify a video, too? Thanks for your help. Chris You

indirect assignment question

2011-05-16 Thread Andy Baxter
for key in widgetDic: ... set the variable in dic[key] to point to self.wTree.get_widget(key) somehow what I need is some kind of indirect assignment where I can assign to a variable whose name is referenced in a dictionary value. Is there a way of doing this in python? thanks, andy baxter -- http://highfellow.org -- http://mail.python.org/mailman/listinfo/python-list

Re: regular expression i'm going crazy

2011-05-16 Thread andy baxter
On 16/05/11 17:25, Tracubik wrote: pls help me fixing this: import re s = "linka la baba" re_s = re.compile(r'(link|l)a' , re.IGNORECASE) print re_s.findall(s) output: ['link', 'l'] why? i want my re_s to find linka and la, he just find link and l and forget about the ending a. The round br

Re: threads with gtk gui problem

2011-05-14 Thread andy baxter
On 14/05/11 14:12, Andy Baxter wrote: Hi, I'm working on adding a Gtk GUI to a python program. Its main function is to read raw data from an arduino board over USB, and convert it to MIDI note/controller events to be sent to another program. I've had it working fine with just a co

Re: threads with gtk gui problem

2011-05-14 Thread andy baxter
On 14/05/11 14:12, Andy Baxter wrote: Hi, I'm working on adding a Gtk GUI to a python program. Its main function is to read raw data from an arduino board over USB, and convert it to MIDI note/controller events to be sent to another program. I've had it working fine with just a co

threads with gtk gui problem

2011-05-14 Thread Andy Baxter
character read in) ('keeper' is a global object which stores the config data and references to a few key objects). When you start the program, the thread stops either before the first print statement, or on the line which initialises the serial port ( fhan=serial.Serial(...) ). &#x