KixForm, a (little) GUI for Python + PyWin32 ?

2005-12-29 Thread Do Re Mi chel La Si Do
Hi! I had found (since only 2 hours) that KixForm can to do used by Python + PyWin32 At the end of the message, a very small example It's an Active-X, in one file (.DLL), and one help-file (.CHM) It is limited, but simple Download here : http://www.kixforms.org/assets/files/kixforms/KiXform

Re: Vaults of Parnassus hasn't been updated for months

2005-12-23 Thread Do Re Mi chel La Si Do
Hi! >>> Just a poll: Who misses the Vaults of Parnassus like me? Me (+1) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python on Nintendo DS

2005-12-21 Thread Do Re Mi chel La Si Do
Hi! Super mega cool. Thanks! MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: Can Python write foreign characters to the console?

2005-12-16 Thread Do Re Mi chel La Si Do
Hi! That depends on what we call "console". Python console? or Windows console? @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Can Python write foreign characters to the console?

2005-12-15 Thread Do Re Mi chel La Si Do
Hi! On windows, you MUST also configure the console. Use CHCP for to force the good code-page. And, right-click + property + font, for to choice the good font. With that, I can visu french accents, cyrillic, etc. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/pyth

Visual Python : finished ?

2005-12-15 Thread Do Re Mi chel La Si Do
Hi! See : http://www.activeperl.com/Products/Visual_Perl/?mp=1 @+ MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: access to preallocated block of memory?

2005-12-14 Thread Do Re Mi chel La Si Do
>>> vxworks tasks writes to a reserved area of memory. Is it compatible with the mmap module ? -- http://mail.python.org/mailman/listinfo/python-list

Re: How To Read Excel Files In Python?

2005-12-13 Thread Do Re Mi chel La Si Do
Hi! I had few modif. your code : import time from win32com.client import Dispatch xlApp = Dispatch("Excel.Application") xlApp.Visible=True xlWb = xlApp.Workbooks.Open("Read.xls") print "D3:",xlWb.ActiveSheet.Cells(3,4).Value time.sleep(2) xlWb.Close(SaveChanges=0) xlApp.Quit() This run OK on my

Re: PythonMagick on Windows

2005-12-05 Thread Do Re Mi chel La Si Do
+1 Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Call OCX from python?

2005-11-26 Thread Do Re Mi chel La Si Do
>From WxPython, or from PythonWin. Other way : call, & drive, Internet-Explorer, who call the ocx. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Any way to change files in a ZIP archive?

2005-11-25 Thread Do Re Mi chel La Si Do
Hi! See http://mclaveau.com/ress/python/zipmci.htm @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading a subprocesses stdout on Windows

2005-11-21 Thread Do Re Mi chel La Si Do
Hi! Let down subprocess, and remember popen4. Here, an example (with CMD, under w-XP) : import os def lcmd(lst=None): a = os.popen4(lst[0]) for i in lst[1:]: if i!='': a[0].write(i+'\r\n') a[0].flush() return a[1].readlines() l=[ 'CMD /K', 'DIR *.c

Re: searching for files on Windows with Python

2005-11-17 Thread Do Re Mi chel La Si Do
Hi! But fnmatch (or glob) is unix-like. With few error in windows (sample ? trye '*.' ) Test this code rather: import os l=os.popen4('dir c:\\python\\*.pyw /S /B')[1].readlines() print ''.join(l) @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/pytho

Re: subprocess terminate help

2005-11-16 Thread Do Re Mi chel La Si Do
Hi! Self-destruction of a script: import os os.popen('TASKKILL /PID '+str(os.getpid())+' /F') (only in windows XP or 2K) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Get the pid of a os.startfile(filename)

2005-11-08 Thread Do Re Mi chel La Si Do
Hi ! With W2K or WXP : tasklist /FI "IMAGENAME eq exename.exe" And, with Python, how capture this information : def findPID(exename): import os a = os.popen4('tasklist /FI "IMAGENAME eq '+exename+'"') a[0].flush() try: info=a[1].readlines()[3].split() except

Re: Running autogenerated code in another python instance

2005-11-02 Thread Do Re Mi chel La Si Do
With good spaces : def runcode(srcode): import sys,traceback sret=True try: ccod=compile(srcode, 'Paul-code', 'exec') flagcompile=True except: print "compilo-error" flagcompile=False if flagcompile==True: try: exec(ccod

Re: Running autogenerated code in another python instance

2005-11-02 Thread Do Re Mi chel La Si Do
Hi! I did not understand anything with your chatterer message. But, perhaps, the code below will help you. @-salutations Michel Claveau def runcode(srcode): import sys,traceback sret=True try: ccod=compile(srcode, 'Paul-code', 'exec') flagcompile=True except: print

Re: Using graphviz to visualize trace.py output, anybody?

2005-10-30 Thread Do Re Mi chel La Si Do
Hi! Under Windows, I call graphwiz from Python via COM, with win32all (PyWin). Sorry, I don't know the Mac. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Expanding Python as a macro language

2005-10-29 Thread Do Re Mi chel La Si Do
Hi ! Not the good answer, but, for information : AutoIt is very better in beta-release (many versions beta exist). AutoIt beta can use COM call, and can use COM-server writed in Python with win32all (PyWin). And, also, AutoIt exist like Active-X (in reality a COM server), who can to do used

Re: Trouble with win32com and MS Project

2005-10-19 Thread Do Re Mi chel La Si Do
Hi ! The parameter (ResourceID=2) is problematic Try : proj.Tasks(3).Assignments.Add(2) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Why asci-only symbols?

2005-10-10 Thread Do Re Mi chel La Si Do
Hi ! I agree with you; I will adore capacity to call functions named in Unicode. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL Image can't open png file with "I"?

2005-10-07 Thread Do Re Mi chel La Si Do
Hi ! Perhaps... ";" better than "," : im=Image.open(r"C:\vodka3.png"); im.show() Perhaps... more simplist : im=Image.open(r"C:\vodka3.png").show() Perhaps... other thing ? @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Parrot & Python ?

2005-10-02 Thread Do Re Mi chel La Si Do
Hi ! Thank for links. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Parrot & Python ?

2005-10-02 Thread Do Re Mi chel La Si Do
Hi ! On the site of Amber : http://xamber.org/index.html We can to view the sentence : "Parrot version of Python" Question : what is "Parrot version of Python" ? @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: pyMinGW support for Python 2.4.2 (final) is available

2005-09-29 Thread Do Re Mi chel La Si Do
Hi ! No problem for me, with IE-6 + FlashGet (just to choose right-click + record target) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: subprocess problem

2005-09-29 Thread Do Re Mi chel La Si Do
Hi ! Thank you very much. With your tip, this script : import os p = os.popen4(r'cmd /k') p[0].write('dir *.bat /B\r\n') p[0].flush() p[0].write('dir *.cfg \r\n') p[0].flush() p[0].write('exit\r\n') p[0].flush() print ''.joi

subprocess problem

2005-09-27 Thread Do Re Mi chel La Si Do
Hi! This script (under Win-XP + P-2.4.1) : import subprocess p1=subprocess.Popen(r'cmd /cdir *.* /S /W /B', stdout=subprocess.PIPE) chaineretour=p1.stdout.read() run OK if called from DOS-console. But, from another Python's script (by COM + exec) give me an error. Here, the traceb

Re: subprocess considered harmfull?

2005-09-25 Thread Do Re Mi chel La Si Do
Hi also ! In other fields, I also found uses which did not function with subprocess, but OK with popen2/4 @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: getting words from readline

2005-09-10 Thread Do Re Mi chel La Si Do
Hi ! Look : .split() @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: IDisatch and pythoncom

2005-09-10 Thread Do Re Mi chel La Si Do
Hi ! Perhaps : .Dispactch vs .Dispatch ? @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: execute commands and return output

2005-09-10 Thread Do Re Mi chel La Si Do
Hi ! Look (the doc for) Popen2, Popen3, Popen4 & Subprocess @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: subprocess solved all my problems

2005-09-09 Thread Do Re Mi chel La Si Do
Hi ! Thank you for this interesting message. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compiled?

2005-09-05 Thread Do Re Mi chel La Si Do
Hi ! One of the greatest reason which encouraged me to choose Python is its interpreted nature (more exactly its nature of dynamic language). The utilities of distribution, or packaging, are enough numerous to solve this kind of problem. The existence of Py2exe (inter alia), could concillier

Re: Help for NewBies at WikiBooks

2005-09-03 Thread Do Re Mi chel La Si Do
Hi ! I had read the article on Python's concept "Metaclass": zero error in the content ! @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Open-Office ; Python & Win (plain/text)

2005-09-01 Thread Do Re Mi chel La Si Do
Open-Office 2.0 bêta-2 français pour Windows (en fait, la 1.9.125 ) est sortie. Vous la trouverez là : http://oootranslation.services.openoffice.org/pub/OpenOffice.org/2.0beta2rc/OOo_2.0beta2_Win32Intel_install_fr.zip Je cite ce lien, car j'ai réussi à piloter Open-Office, depuis Python, avec

Re: trouble with time --again

2005-08-30 Thread Do Re Mi chel La Si Do
Hi ! Try : import datetime date1 = datetime.datetime(2005,01,01,8,20,0) print date1.strftime('%Y-%m-%d %H:%M:%S') @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: python and ajax

2005-08-29 Thread Do Re Mi chel La Si Do
Hi ! Here : http://wikipython.flibuste.net/moin.py/AJAX @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows/win32all, unicode and long filenames

2005-08-28 Thread Do Re Mi chel La Si Do
Hi ! You are true. But, more, don't believe : for use with CD-Rom/DVD, a path cannot to have more than 64 caracteres. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Any projects to provide Javascript-style client-side browser accessvia Python?

2005-08-26 Thread Do Re Mi chel La Si Do
Hi ! >>> So anyone know if there are projects underway on this? Yes, I work on this way. But it's a long work, because I have few time... But there are certainly other projects. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Exploring outlook using python

2005-08-24 Thread Do Re Mi chel La Si Do
Hum... If it's Outlook, look for COM/Dispatch, with PyWin32 If it's Outlook-Express, search a MAPI module, like said Peter Hansen. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL: retreive image resolution (dpi)

2005-08-22 Thread Do Re Mi chel La Si Do
Hi ! The size of a image is an element ; but resolution is another. It is the link, between the image and the reality. Size AND resolution can to give the scale. Exemple : when you scan a document, the size (in pixels) is not sufficient, for to reproduce the document. Size + resolution, yes.

Re: stopping a python windows service

2005-08-16 Thread Do Re Mi chel La Si Do
Hi ! Use SC.exe (windows-XP) (with popen ?) For help :sc /? You can, also, try : qprocess /? tasklist /? taskkill /? etc. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: COM access sooo slow !?

2005-08-15 Thread Do Re Mi chel La Si Do
Hi ! I use a COM server, made with Python & Win32all (PyWin32). The speed of function's call is : 5 seconds, for 100 000 calls. Only the first call is slow (due to time to load Python...) Config : W-XP, P.2.4.1, 1.6 GHz, 512MB RAM @-salutations & sorry for my bad english Michel Claveau --

Re: Create a variable "on the fly"

2005-07-27 Thread Do Re Mi chel La Si Do
Hi ! Try : OSCAR='the grouch' print OSCAR useless to thank me Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Tablet PC: limitations?

2005-07-22 Thread Do Re Mi chel La Si Do
Hi ! I am a Tablet-PC's user. I am a Python programmer. I am happy, with this combo. For use Tablet's extensions, I use Internet-Explorer, drived by Python (via .HTA). Your problem is not Python, but, perhaps, Mozilla ? @-salutations Michel Claveau -- http://mail.python.org/mailman/listinf

Re: problems with python 2.4 help

2005-07-15 Thread Do Re Mi chel La Si Do
Hi ! See : http://www.gossamer-threads.com/lists/python/bugs/350314 -- http://mail.python.org/mailman/listinfo/python-list

Re: Options to integrate Python modules into native windows applications

2005-07-08 Thread Do Re Mi chel La Si Do
Hi ! >>> Your english is fine. Ce n'est pas mon anglais. Babelfish m'a beaucoup aidé. @-salutations -- Michel Claveau mél : http://cerbermail.com/?6J1TthIa8B sites : http://mclaveau.com http://bergoiata.org http://ponx.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Options to integrate Python modules into native windows applications

2005-07-08 Thread Do Re Mi chel La Si Do
Re Hi ! I had only test (little) Python for .Net ; OK, it's run. It is possible to make winform from Python. And I had try to use Python for .Net from my COM-server, and from VBscript. OK also. Plus, I had try to call my Python-server-COM, from C# : OK it's run. C# can use Python. And, I h

Re: Options to integrate Python modules into native windows applications

2005-07-08 Thread Do Re Mi chel La Si Do
Hi ! I use, intensively, Python, via COM & PyWin32, from Paradox (Object-Pal), VBScript, Excel, Word, Internet-explorer, AutoIt, etc. It is simple, powerful and extensible dynamically. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: how to change a script while it is running

2005-07-07 Thread Do Re Mi chel La Si Do
Hi ! Try : def ff(a): print a*2 ff(111) exec('''def ff(a): print a*3 ''',globals(),globals()) ff(111) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: calldll compiled for Python 2.4 for Windows

2005-07-01 Thread Do Re Mi chel La Si Do
Hi ! Use Ctypes Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Excellent Site for Developers

2005-06-25 Thread Do Re Mi chel La Si Do
rather... super troll -- http://mail.python.org/mailman/listinfo/python-list

Re: Office COM automatisation - calling python from VBA

2005-06-24 Thread Do Re Mi chel La Si Do
Hi ! Perso, j'utilise ça (VBA) : Sub TestPonx() Dim oa As Object Set oa = CreateObject("Ponx.Mci") Cells(2, 4) = oa.PRet("123+45+6") Set oa = Nothing End Sub "Ponx.Mci" est le nom du serveur COM Python PRet() est équ

Re: Thanks for PIL (and other stuff)

2005-06-24 Thread Do Re Mi chel La Si Do
+1 -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: write to the same file from multiple processes at the same time?

2005-05-28 Thread Do Re Mi chel La Si Do
Hi ! On windows, with PyWin32, to read this little sample-code : import time import win32file, win32con, pywintypes def flock(file): hfile = win32file._get_osfhandle(file.fileno()) win32file.LockFileEx(hfile, win32con.LOCKFILE_EXCLUSIVE_LOCK, 0, 0x, pywintypes.OVERLAPPED()) def f

Re: Determine if windows drive letter is hard drive or optical from python?

2005-05-27 Thread Do Re Mi chel La Si Do
Hi ! You can use WMI, for that. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Just remember that Python is sexy

2005-05-24 Thread Do Re Mi chel La Si Do
:-) -- http://mail.python.org/mailman/listinfo/python-list

Re: no win32com.client

2005-05-23 Thread Do Re Mi chel La Si Do
Hi ! Or : http://sourceforge.net/project/showfiles.php?group_id=78018 @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Self-modifying Code

2005-05-22 Thread Do Re Mi chel La Si Do
Hi ! I often use the auto-modification of code, to allow the users to adapt software to the evolution of their needs. When this technique is controlled, and framed well, it presents only few problems. AMHA, to speak about danger, it is the result of a lack of practice and tests. It is a litt

Re: Memory errors with large zip files

2005-05-20 Thread Do Re Mi chel La Si Do
Hi I had make this test (try) : - create 12 txt's files of 100 MB (exactly 102 400 000 bytes) - create the file "tst.zip" who contains this 12 files (but the file result is only 1 095 965 bytes size...) - delete the 12 txt's files - try your code And... it's OK for me. But : the compress

Re: Self-modifying Code

2005-05-19 Thread Do Re Mi chel La Si Do
Hi, you, also ! A view, with a little difference : def titi(par): if par>222: return par*2 else: return par*10 print titi(123) print titi(1234) #now, change the function, "on instant" txt="""def titi(par): if par>222: return str(par)*2 else: retu

To circumvent the bug cp1252

2005-05-15 Thread Do Re Mi chel La Si Do
Hi ! *** for information *** There is a bug in Python 2.4, worsened with the 2.4.1, for scripts, if they are: - large - with larges lines - prefixed (coded) with # -*- coding: cp1252 -*- - on windows (XP & S2003) - perhaps, also, other conditions... This bug announces, wrongly, of

Re: Python interpreter in Basic or a Python-2-Basic translator.

2005-05-01 Thread Do Re Mi chel La Si Do
Hi ! VBA is at the end of his lifetime. The next MS-Office will not have VBA (because dotNet). You should really adopt Python. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Import DiscID on Windows

2005-04-25 Thread Do Re Mi chel La Si Do
Hi ! Look ctypes, for call the DLLs @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Ming on Windows

2005-04-24 Thread Do Re Mi chel La Si Do
Hi ! You can to generate SWF (flash) files, with swfobjs.dll See : http://bukoo.sourceforge.net and http://www.angelfire.com/nt/teklord/swfexport.htm I succeeded, therefore, it is easy... Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-20 Thread Do Re Mi chel La Si Do
+1 Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python from a browser

2005-04-14 Thread Do Re Mi chel La Si Do
Hi ! I confirm for IE. Others, I don't know. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread Do Re Mi chel La Si Do
And, also, with dotNET-framework -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread Do Re Mi chel La Si Do
Hi ! This DLL come also with MS-JVM engine, who is free. Therefore... -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: [maintenance doc updates]

2005-03-29 Thread Do Re Mi chel La Si Do
Hi ! Thanks. But, for previous versions of Python, I downloaded a CHM version; and, at http://docs.python.org/download.html, I don't found this format. is this a lapse of memory? Would it be possible to have a continuity in the availability of the formats? Thanks again. Michel Claveau

Re: Trouble with RC2

2005-03-29 Thread Do Re Mi chel La Si Do
Hi ! Yes, P4RC2 is a error ; it is Python 2.4.1 release candidate 2 Yes, P2.4 is Python 2.4 The scripts use ONLY space-indentation. But the important points are : - if I install Python 2.4 on the rc2 (overwrite), then problem disappears, with the SAME scripts. - the problem is only wi

Re: BF interpreter in Python

2005-03-29 Thread Do Re Mi chel La Si Do
Hi ! Good idea. I take this interpreter with jubilation. Can I add your URL at http://mclaveau.com/esolang ? Other question : do you know PATH ? (http://pathlang.sourceforge.net) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Trouble with RC2

2005-03-28 Thread Do Re Mi chel La Si Do
Hi ! I have sevral problems with P4-RC2. Typical case, I have a script who run OK with P4 "standard" ; but, on a new install, with P4-RC2, I obtain : Traceback (most recent call last): File "C:\PONX\ponx.py", line 60, in ? import pdebug File "C:\PONX\pde

Re: What's the best GUI toolkit in Python,Tkinter,wxPython,QT,GTK?

2005-03-27 Thread Do Re Mi chel La Si Do
+1 Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Twisted version 2.0

2005-03-24 Thread Do Re Mi chel La Si Do
Same question. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: execfile() on file subclass or string

2005-03-24 Thread Do Re Mi chel La Si Do
Hi ! little idea : You can save the string, in temp-directory (see tempfile module), then, use execfile Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: IronPython 0.7 released!

2005-03-23 Thread Do Re Mi chel La Si Do
Hi ! I am curious : 1)I can't download the file ("error in the GotDotNet system"). 2) On http://ironpython.com, there are no new version @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: problems with  character

2005-03-22 Thread Do Re Mi chel La Si Do
And this run OK for me : s = 'a  aaa' print s print s.replace('Â', '') -- http://mail.python.org/mailman/listinfo/python-list

Re: problems with  character

2005-03-22 Thread Do Re Mi chel La Si Do
a  aaa' 0123456 It's OK -- http://mail.python.org/mailman/listinfo/python-list

Re: How to create an object instance from a string??

2005-03-21 Thread Do Re Mi chel La Si Do
Hi ! Finally, it's the best solution. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: IconvCodec, UTF-32 & P4 ?

2005-03-21 Thread Do Re Mi chel La Si Do
re-Hi When I look http://cjkpython.i18n.org I found only binaries for P2.1, P2.2 & P2.3 (I am on windows) If I run the P2.3's version, on my Python 2.4 config, the package said that he don't found Python2.3. And, I don't have compiler for work with source. If benefactor of humanity has do

IconvCodec, UTF-32 & P4 ?

2005-03-20 Thread Do Re Mi chel La Si Do
Hi ! Iconvcodec was good, for to work with UTF-32, with Python 2.3 But, which tool, for the same use, with Python 2.4 ? Thanks for suggestions. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: exec src in {}, {} strangeness

2005-03-20 Thread Do Re Mi chel La Si Do
Hi ! Try : exec f in globals(),locals() or exec(f,globals(),locals()) or exec f in globals(),globals() or exec(f,globals(),globals()) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: 1 + 2 = 3

2005-03-20 Thread Do Re Mi chel La Si Do
4 -- http://mail.python.org/mailman/listinfo/python-list

Re: How to create an object instance from a string??

2005-03-19 Thread Do Re Mi chel La Si Do
Hi ! Sorry, but : The statement exec does not have impact on the style. Like with exefile or import (and other), the style is determined by the contents. Rather judge "exec" (or import, or execfile) than the contents, it is an error of causality. @-salutations -- Michel Claveau -- ht

Re: How to create an object instance from a string??

2005-03-19 Thread Do Re Mi chel La Si Do
Hi ! Also : classname = "Dog" exec("b="+classname+"()") b.bark() or classname = "Dog" exec("cl="+classname) b=cl() b.bark() Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Pre-PEP: Dictionary accumulator methods

2005-03-19 Thread Do Re Mi chel La Si Do
Hi if key not in d: d[key] = {subkey:value} else: d[key][subkey] = value and d[(key,subkey)] = value ? Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Shared Memory Example (Python, ctypes, VC++)

2005-03-19 Thread Do Re Mi chel La Si Do
Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Communication between python scripts

2005-03-01 Thread Do Re Mi chel La Si Do
Hi ! A socket (TCP) server is more simplist than XML-RPC, and 30 x faster. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Communication between python scripts

2005-03-01 Thread Do Re Mi chel La Si Do
Hi ! A socket (TCP) server is very easy, and 30 x faster than XML-RPC. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux & Windows XP

2005-02-21 Thread Do Re Mi chel La Si Do
Hi ! For test your system, please, read this url : http://sivanataraja.free.fr/config/test.htm (french) http://www.alanwood.net/unicode/ (english) And many explains : http://en.wikipedia.org/wiki/Unicode And, to reassure you: I had no problème for use unicode chars with Tk (my tests

Re: detecting the change in desktop resolution - how?

2005-02-21 Thread Do Re Mi chel La Si Do
Hi ! On windows, and PyWin, this script give the H/V current resolution : import win32com.client oWMI = win32com.client.Dispatch("WbemScripting.SWbemLocator") owbem = oWMI.ConnectServer(".","root\cimv2") collec = owbem.ExecQuery("Select * from Win32_PrinterConfiguration") pr

Re: keeping a COM server alive

2005-02-15 Thread Do Re Mi chel La Si Do
Hi ! Sorry, but I receive the mailing list, I had readed THE book (Prog...Win32), I questioned M.Hammond, I traversed the archives... But I have no solution. And, also, a COM server which answers several clients is very smart to design; in particular because of the temporal re-entry (re-entrance

Re: DHTML control from Python?

2005-02-14 Thread Do Re Mi chel La Si Do
Oh, Sorry, I had read too fast. I see, now, the word "Mac". Apologies. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: DHTML control from Python?

2005-02-14 Thread Do Re Mi chel La Si Do
See Pamie : http://pamie.sourceforge.net @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: keeping a COM server alive

2005-02-14 Thread Do Re Mi chel La Si Do
Hi ! I had also make a Python-COM-server. But, when I launch several clients, I obtain several instances of my COM-server. Finally, there are advantages and disadvantages in this established fact. But I can't use this way for to exchange data between several clients. For that, I use a TCP local s

Re: [NooB] a Variable in multiple quotes...

2005-02-13 Thread Do Re Mi chel La Si Do
It's OK for me @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Concurrent Python

2005-02-12 Thread Do Re Mi chel La Si Do
Hi ! You can found few ideas here : http://candygram.sourceforge.net @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: PHP Embedded In Python

2005-02-08 Thread Do Re Mi chel La Si Do
And : http://lesuisse.net/pyphp-0.1.tgz ? @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Curses on Windows

2005-02-06 Thread Do Re Mi chel La Si Do
same symptoms @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >