Re: PythonCard timer/thread tutorial

2008-12-24 Thread Gabriel Genellina
En Wed, 24 Dec 2008 20:56:45 -0200, Sponge Nebson escribió: This is my first post. Nice to meet you all! Could one of you walk me through this code? It is from David McNab and Alex Tweedly's tutorial on timers and threads, which can be found here: Mike Driscoll has already answered your quest

Re: Easy-to-use Python GUI

2008-12-24 Thread Gabriel Genellina
En Wed, 24 Dec 2008 21:47:07 -0200, Joel Koltner escribió: Is there an easy-to-use, "function"-based cross-platform GUI toolkit for Python out there that's a little more sophisticated than EasyGui? Try Dabo http://dabodev.com/ -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/

Re: ctypes & strings

2008-12-24 Thread Gabriel Genellina
En Wed, 24 Dec 2008 23:07:27 -0200, Red Rackham escribió: I would like to pass a string into a dll function.  I notice that to pass using ctypes, it has to be a ctypes type.  Looking at the ctypes doc page I don't see a c_string class.  Because the C language doesn't have a string type? Py

RE: How to change a generator ? - resolved

2008-12-24 Thread Barak, Ron
Hi Gabriel, Your remarks fixed my problem. Now my code looks as below, and behaves as expected. Thanks Gabriel. Merry Christmas and Happy Hanukkah, Ron. $ cat generator.py #!/usr/bin/env python import gzip from Debug import _line as line class LogStream(): def __init__(self, filename)

How to display Chinese in a list retrieved from database via python

2008-12-24 Thread zxo102
Hi, I retrieve some info in Chinese from postgresql and assign it to a variable 'info' defined in javascript of a html page: var info = ['\xd6\xd0\xce\xc4','\xd6\xd0\xce\xc4','\xd6\xd0\xce \xc4'] But I want it to be var info = ['中文','中文','中文'] since in html pages (via javascript), the

Re: How to display Chinese in a list retrieved from database via python

2008-12-24 Thread Chris Rebert
On Wed, Dec 24, 2008 at 11:29 PM, zxo102 wrote: > Hi, > I retrieve some info in Chinese from postgresql and assign it to a > variable 'info' defined in javascript of a html page: > var info = ['\xd6\xd0\xce\xc4','\xd6\xd0\xce\xc4','\xd6\xd0\xce > \xc4'] > But I want it to be > var info = [

<    1   2