Cursor navigation

2005-07-18 Thread TA
e1']] >>> cur.execute("fetch 1 in acursor") QUERY: fetch 1 in acursor >>> r = cur.fetchall() >>> r [[2, 'name2']] >>> cur.execute("fetch -1 in acursor") QUERY: fetch -1 in acursor >>> r = cur.fetchall() >>> r [[1, 'name1']] This works as expected. Only a single row is returned and it is possible to fetch rows forwards and backwards in the cursor, but is this really the way to do this? If anyone can explain what I'm doing wrong or suggest another approach, it would be much appreciated. -- TA Denmark -- http://mail.python.org/mailman/listinfo/python-list

Re: Cursor navigation

2005-07-22 Thread TA
'cursor.scroll()' is optional and pySqlite supports it too, but pyPgSQL does not. Thanks for replying. -- TA -- http://mail.python.org/mailman/listinfo/python-list

Re: Display of JPEG images from Python

2006-01-05 Thread M�ta-MCI
Hi! Example: import Image Image.open('Titi.jpg').show() @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding exe file

2006-07-16 Thread M�ta-MCI
Hi! This script : import base64 data=open("D:\\toto.exe","rb").read() data64='''import base64,os data="""'''+base64.b64encode(data)+'''""" f=open(r"C:\\temporaire.exe","wb").write(base64.b64decode(data)) os.system(r"C:\\temporaire.exe") ''' f=open("64exe.py","w").

Re: Track keyboard and mouse usage

2006-07-17 Thread M�ta-MCI
Hi! Look PyHook ( http://cheeseshop.python.org/pypi/pyHook/1.4 ) Ooooh!!! Sorry! It's for Windows... -- MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: New SourceForge project: Diet Python!!!

2006-07-18 Thread M�ta-MCI
Hi! Interesting (or fun?). Have you a Internet page, or only README? @+ MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: How to automate user input at the command prompt?

2006-07-21 Thread M�ta-MCI
Hi! Same problem. I had search, long time, with popenX, with subprocess. I don't have, actually, any solution... Suggestion: the first which finds prevents the others... @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: How to automate user input at the command prompt?

2006-07-21 Thread M�ta-MCI
Hi! I had try with pipes & subprocess. Unfortunaly, when dos-commandline show a text who question for Yes/No, this text is not available in subprocess/pipe ; => and block! And then, I can't send "Y" to the stdin... I test with: MD TOTO RD TOTO/S (I know, RD TOTO/S/Q run Ok, but I

Re: How to automate user input at the command prompt?

2006-07-22 Thread M�ta-MCI
Hi! >>> There are typically only two output streams from a command line program. >>> stdout and stderr... Some of the OS triggered error messages (abort, retry, fail) might be going to stderr -- so if you were looking at stdout, you won't see them. - when you use RD TOTO/S , win show the text

Re: How to force a thread to stop

2006-07-23 Thread M�ta-MCI
Hi! >>> "threadicide" method I like this word... Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

News on versions modules for Python-2.5?

2006-10-06 Thread M�ta-MCI
Hi, all! Any news, on release Python-2.5 for many modules/lib? Some exemples: Console (Effbot) SciPy Iconvcodec DirectPython SendKeys Dislin PyGame Twain etc. And who can confirm that these modules are independent of Python version? ReportLab Pyrex

Re: COM Error -- Urgent help

2006-10-16 Thread M�ta-MCI
Hi! .func( is not defined... @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Python 2.5 ; Effbot console ; thank ; pb release.

2006-10-23 Thread M�ta-MCI
Hi! (***sorry for my approximative english***) A few months ago, I needed a console, under Windows. After several research, I selected the console of EffBot. Thank you very much, Fredrik Lundh, for this small tool, quite practical and which repaired me well. Then, Python 2.5 arrived. Man

Re: Best Python Editor

2006-05-31 Thread M�ta-MCI
Hi! Komodo (http://www.activestate.com/Products/Komodo) is great, for me. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Where is the ucs-32 codec?

2006-06-04 Thread M�ta-MCI
Hi! Look at: http://cjkpython.berlios.de (iconvcodec) (Serge Orlov has built a version for Python 2.4 "special for me"; thanks to him). @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Pb console Effbot

2006-06-14 Thread M�ta-MCI
Good evening! I installed the Console of EFFBOT (http://effbot.org/downloads/#console). It functions well. It's a very fun/friendly tool. Except a detail: when I send (by console.write()) more than 53200 characters, it does not occur anything. I circumvented the problem, with a loop which sends

Re: [OT] Python Argentina T-shirt to exchange

2006-06-17 Thread M�ta-MCI
Hi! You can post your message on fr.comp.lang.python Bon voyage en France ! @-salutations -- Michel Claveau sites : http://mclaveau.com http://bergoiata.org http://ponx.org -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] IronPython 1.0 released today!

2006-09-05 Thread M�ta-MCI
Félicitations. Et chapeau pour votre travail. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenOffice.org and Python

2006-09-06 Thread M�ta-MCI
Hi! >>> Poor people. Poor people... but (very) rich client!!! ;-) @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: New 2.5 release date: September 19

2006-09-06 Thread M�ta-MCI
September 19?Okay ! Which year? Apologies: only for LOL -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a python IDE

2006-09-17 Thread M�ta-MCI
Hi! Perso, I like komodo. But : - littles pb with (very) big scripts - slow to start - no french version... @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Hardlinks on NTFS

2006-09-17 Thread M�ta-MCI
Hi! Here, a copy of a message send on anither newsgroup (by me). Summary on hardlink & junction-point. *** Sorry, this text is in french ; but command & links are good. *** Synthèse sur les hardlinks et les points de jonction. - Les hardlinks sont des alias sur des fichiers. - Les p

Re: windev vs python SOS

2006-09-29 Thread M�ta-MCI
Re-Bonjour ! J'avais écrit, dans le message précédent, que la société PC-Soft avait eu des difficultés financières, il y a plusieurs années. Comme je n'ai pas eu l'occasion de vérifier cette information, (et à la demande de la société PC-Soft), je demande donc aux lecteurs de consid

Pb subprocess

2006-11-17 Thread M�ta-MCI
Hi! This code : p=subprocess.Popen(chaine, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) data=p.stdout.read() Run OK, except when stdout.read() give unicode data, with char>255 (this give many "?") How read real unicode data in stdout.read() ? T

Re: Pb subprocess

2006-11-17 Thread M�ta-MCI
Solved. Thank to Amaury. Solution : change (in register), Command Processor, for to force using of "CMD /U/C" Then, STDOUT is in utf-16 (but win-console stay in cp850) HGD Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Pb ReportLab (ttfonts.py)

2006-12-11 Thread M�ta-MCI
Hi! I try to generate PDF from Python 2.5 + ReporLab_lib, and, I have: C:\Python25\reportlab\pdfbase\ttfonts.py:407: DeprecationWarning: struct integer overflow masking is deprecated stm.write(pack(">LLL", checksum, offset, len(data))) C:\Python25\reportlab\pdfbase\ttfonts.py:419:

Re: Pb ReportLab (ttfonts.py)

2006-12-11 Thread M�ta-MCI
Hi! >>> Does the PDF generation work? Those are just warnings. Yes, it run. Yes it's only warning But, it's wincing... @-salutations MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: Pb ReportLab (ttfonts.py)

2006-12-11 Thread M�ta-MCI
Hi! You are right. I had suppose than ReportLab folks read this NG. No luck... for instant. MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: Checking free disk space on Win32 ?

2006-01-28 Thread M�ta-MCI
Hi ! Another method : import os print str(os.popen4('dir C:\ /AD |find "octets"|find "libre"')[1].readlines()[0].split()[2]) Warning ! It's French version. For english, perhaps (depend of DIR return format) : import os print str(os.popen4('dir C:\ /AD |find "bytes"|find "fre

Re: We have zipimport, how about dllimport?

2006-01-28 Thread M�ta-MCI
ctypes ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Checking free disk space on Win32 ?

2006-01-28 Thread M�ta-MCI
Hi! Fun. Slow, but fun. Thanks. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Rur-ple lessons 0.36

2006-02-01 Thread M�ta-MCI
Bonjour ! Il me semblerait sympathique que cette annonce soit dupliquée sur fr.comp.lang.python, et sur quelques autres newsgroups. Par exemple, puis-je répercuter l'annonce sur le newsgroup "programmation.python" de zoo-logique ? @-salutations -- Michel Claveau -- http://mail.python.org/

Re: PyUNO with different Python

2006-02-22 Thread M�ta-MCI
Hi! The second way don't run: Traceback (most recent call last): File "C:\Program Files\OpenOffice.org 2.0\program\hello_world.py", line 1, in? import uno File "C:\Program Files\OpenOffice.org 2.0\program\uno.py", line 37, in ? import pyuno ImportError: Module use of python23.dll con

Re: PyUNO with different Python

2006-02-25 Thread M�ta-MCI
h... I can run OK "hello_world.py". But only with Python-core-2.3 Python 2.4 don't run (conflict-version, or windows error). And, it's not possible to install extensions (like PyWin) to Python-core-2.3 (this destroy the same extensions in my "normal" Python 2.4) I had let down these aspect

Re: [Python-de] PyUNO with different Python

2006-02-25 Thread M�ta-MCI
Bonjour ! J'ai des problèmes/besoins similaires. Mais, désolé, je ne parle pas allemand... @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: make a class instance from a string ?

2006-02-26 Thread M�ta-MCI
Hi! Perso, I like this... MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread M�ta-MCI
Et le klingon ? Please, don't forget klingons SVP, n'oubliez pas les klingons ;o) -- http://mail.python.org/mailman/listinfo/python-list

Re: Controlling Firefox with Python

2007-06-19 Thread M�ta-MCI
Hi! See Mozlab: http://dev.hyperstruct.net/mozlab and give a report, please. Thank you in advance. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-21 Thread M�ta-MCI
Hi! >Given that one can add/replace/remove methods and attributes >dynamically either on a per-class or per-instance basis, and even >dynamically change the class of an object, I fail to see how static >typechecking could be meaningfull. Et toc ! -- http://mail.python.org/mailman/listinfo/

Re: Invisible processes in Win2K

2007-06-21 Thread M�ta-MCI
Hi! When you lock (the cpu), interactive mode is off. You can try to use services, who run independently of sessions. But... -- http://mail.python.org/mailman/listinfo/python-list

Re: python 3.0 or 3000 ....is it worth waiting??? Newbie Question

2007-07-03 Thread M�ta-MCI
Hi! > Python 3000 doesn't include many significant changes to the language One exemple : non-Ascii characters in identifiers (= no significatif change?) Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: IDEs for COM scripting: C# v. Python v. Iron Python v. JPython

2007-07-04 Thread M�ta-MCI
Hi! >I love the typing assist I get when using C# in VS2005 to write COM >clients. But this run only for static-COM-servers. Dynamic-COM-servers are not supported by these assists. And, all COM-servers builds with Python are dynamic-COM-server. And also, dynamic-COM-server is a marvelous way fo

Re: python and activeX control

2007-04-28 Thread M�ta-MCI
Bonsoir ! Flagrant délit de manque de confiance dans les newsgroups français en vue... Ha ! Ha ! Ha ! Bonne chance avec les US... -- http://mail.python.org/mailman/listinfo/python-list

Re: SilverLight, a new way for Python?

2007-05-01 Thread M�ta-MCI
Re! >>> it can do much more than active scripting. Hummm Perhaps. But, with ActiveScripting, I can define functions & class in Python, Ruby(script), Jscript, VBscript, Perl. I can call these functions/objects directly from Python, and share many objects (& libraries). I am not sure to find

Tcl-tk 8.5?

2007-05-01 Thread M�ta-MCI
Hi! See http://wiki.tcl.tk/10630 Any plan to integrate Tcl 8.5 in standard Python? @+ MCI -- http://mail.python.org/mailman/listinfo/python-list

Windows, subprocess.Popen & encodage

2007-05-07 Thread M�ta-MCI
Hi! >From long time, I have problems with strings return, in Windows, by subprocess.Popen / stdout.read() Last night, I found, by hazard, than if the second byte equal 0, it's, perhaps, the solution. With a code like this: p=subprocess.Popen(u850("cmd /u/c tdata=p.stdout.read()

Bug? import cp1252

2007-05-12 Thread M�ta-MCI
Hi! I've a problem with these 2 scripts: file aaa.py (write in ANSI/cp1252): # -*- coding: cp1252 -*- compo={} compo['pxrtf']= { 'fichier': "pxrtf.py", 'description': "Génération de fichiers RTF" } file bbb.py (write in ANSI/cp1252): # -*- coding: cp1252 -*- import aaa With run

Re: Bug? import cp1252

2007-05-14 Thread M�ta-MCI
Hi! >>> I suspect that's there's some invisible character in the file No ; because I reproduce the problem, on another CPU, with typing from scratch. >>> I can't reproduce this -- Python 2.5.1, Windows XP Pro SP2 I'm sorry. Perhaps my "french" windows is a co-factor? Perhaps my locale has Or

Re: Graphviz Python Binding for Python 2.5 on Windows?

2007-03-05 Thread M�ta-MCI
Hi! You can also use/call GraphViz by COM. It's run OK with P2.3 - 2.4 & 2.5 @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Mocking OpenOffice in python?

2007-03-14 Thread M�ta-MCI
Hi! Under windows, I drive OOo, from Python, via COM/OLE-automation. It's run OK, but some bugs, in the OOo-COM-Python, had stop my devloppements... However, this way is usable (only on Win, ok?) @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Object Oriented Database with interface for Pyhton

2007-03-30 Thread M�ta-MCI
Hi! >>> http://www.sqlalchemy.org/ No. sqlalchemy is an object-oriented-interface(or wrapper) Alfaeco want an Object-Oriented-Database (like Jasmin, Caché, etc.) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Opening Photoshop EPS with PIL?

2007-04-01 Thread M�ta-MCI
.eps ==> vector ; not bitmap -- http://mail.python.org/mailman/listinfo/python-list

Re: pluie documentation in english

2007-04-10 Thread M�ta-MCI
Bonjour ! Avec Internet-Explorer 6 : Dans Internet-explorer, par le menu, faire : Outils + Options_internet Aller sur le dernier onglet (Avancé), et cocher : autoriser le contenu actif (désolé pour le français, mais mon anglais est vraiment trop mauvais). Et, merci pour l'info, ça m'

Re: generate tuples from sequence

2007-01-17 Thread M�ta-MCI
Hi! r=iter(range(9)) print zip(r,r,r) But, it's few like Peter... -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Count nb call of a function, without global var or decorator

2007-02-05 Thread M�ta-MCI
Re! I can do : def ff(): this=ff try: this.count=this.count+1 except: this.count=1 a=1 b=2 c=a+b ff() fa=ff ff() fa() print ff.count But that use, inside the function, the litteral name of the function; and I want no use litteral name (inside) @+ Mic

Re: Count nb call of a function, without global var or decorator

2007-02-05 Thread M�ta-MCI
Re! >>> why you didn't use an iterator? If the iterator is extern (to the function), it's like decorator, or global var. If it is internal, it's huge, compare to this.count=this.count+1 (or this.count+=1) @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: bluetooth on windows.......

2007-02-19 Thread M�ta-MCI
Hi! >> try to find a PyBluez version already built for your Python 2.5 On the site : http://org.csail.mit.edu/pybluez/release/PyBluez-0.9.1.win32-py2.5.exe -- http://mail.python.org/mailman/listinfo/python-list

Re: documentation for win32com?

2006-05-23 Thread M�ta-MCI
Hi! MS-Office-2007 beta2, can downloaded here : http://www.microsoft.com/office/preview/beta/getthebeta.mspx (with a passport account). Doc, for COM access, are include in the help-system. @-salutations MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: MS word document generator

2006-03-15 Thread M�ta-MCI
Hi! PyRTF is old, but run OK. I use it, with some little modifs, for another usage. It was good to remember it. MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: MS word document generator

2006-03-15 Thread M�ta-MCI
Hi! The next MS-Office come with a new format of document, based on XML+Zip. But MS-Word can read, now, a XML file. Perhaps you can use this way. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compiler

2006-03-16 Thread M�ta-MCI
Hi! Bonjour ! Après, vous pourrez aussi fréquenter le newsgroup : fr.comp.lang.python qui a l'avantage d'être en français. à bientôt. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: MS word document generator

2006-03-16 Thread M�ta-MCI
Hi! Yes, I have an idea. But... I has no time, actually. Perhaps in 2 or 3 weeks... Sorry. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32 ActiveX with COM support

2006-03-20 Thread M�ta-MCI
Hi! >>>Can I create a COM server / client component set with Python? Yes. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: how to make script interact with another script

2006-03-20 Thread M�ta-MCI
Hi! Few ways : - use TCP/IP server+client (this can also run via a LAN or Internet) - use mmap (this can run Python<=>Python, Python<=>Ruby, etc.) - use a file (and win persistance) - use telepathy (Oups! Sorry, the module is not published yet) - etc. MCI -- http://mail.python.org/m

Re: Win32 ActiveX with COM support

2006-03-20 Thread M�ta-MCI
Re! Make your COM server with PyWin32 (e.g. named PCOM) In your HTML, with JScript, you can : open : try{ var pserv = new ActiveXObject("PCOM");} catch(error){alert('Ne trouve pas PCOM');} call : var vret = pserv.youfunction( par1, par2) ; With PyWin32, all the remainder is a

Re: How to determine COM objects/functions

2006-03-31 Thread M�ta-MCI
Hi! COM browsers, Makepy, and other tools run only for statics COM servers. For dynamic-COM-servers, there are ... only ... documentation. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: beautiful GUI

2006-04-03 Thread M�ta-MCI
Hi! Two ideas : - WindowsBlind - Internet-Explorer + DHTML - Flash, like GUI Oups, there are three ideas Sorry @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode, command-line and idle

2006-04-06 Thread M�ta-MCI
(just for confirm) Hi! if the console is in cp1252, raw_input work OK with "ñ" This (your) script : # -*- coding: cp1252 -*- import sys text1 = u'españa' text2 = unicode(raw_input(), sys.stdin.encoding) if text1 == text2: print 'same' else: print 'not same' work OK with "chcp 8

Re: win32com

2006-04-07 Thread M�ta-MCI
Hi! Answer in the mailing-list. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for thoughts on PyMPI

2006-04-13 Thread M�ta-MCI
Hi! And a small glance on Candygram (http://candygram.sourceforge.net/) can be funny... @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: shutil.copy time stamp errors on win XP

2006-04-15 Thread M�ta-MCI
Hi! Warning : Win-XP manage many date/time for files : creation, last access, last modification, year (?), day of photo And, this can to change, depending on format of disk (NTFS, FAT, etc.) and/or type of files (Jpeg, exe, etc.) On a LAN, the date/time can also to depend of the date/time and

Re: automatical pdf generating

2007-06-24 Thread M��ta-MCI
> Is it possible to use Python to realized the above process? > I know there is a module named "reportlab". Possible? Yes! -- http://mail.python.org/mailman/listinfo/python-list

Re: Seek the one billionth line in a file containing 3 billion lines.

2007-08-08 Thread M�ta-MCI (MVP)
Hi! Create a "index" (a file with 3,453,299,000 tuples : line_number + start_byte) ; this file has fix-length lines. slow, OK, but once. Then, for every consult/read a specific line: - direct acces read on index - seek at the fisrt byte of the line desired @+ Michel Claveau -- http://

Re: SCF released to GPL

2007-08-27 Thread M�ta-MCI \(MVP\)
Salut ! Le deuxième envoi aurait pu être en français. Cela aurait évité le doublon, tout en maintenant le message. @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: How to free memory ( ie garbage collect) at run time with Python 2.5.1(windows)

2007-08-27 Thread M�ta-MCI \(MVP\)
Re! Sended by direct (private) e-mail @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: How to free memory ( ie garbage collect) at run time with Python 2.5.1(windows)

2007-08-27 Thread M�ta-MCI \(MVP\)
Aïe! gmail said : "illegal attachment" (because .exe?) I will try to send a zipped-file... @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: How to free memory ( ie garbage collect) at run time with Python 2.5.1(windows)

2007-08-29 Thread M�ta-MCI \(MVP\)
Hi! I've send the soft. But, I have no news ; good news? @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: PyS60

2007-09-26 Thread M�ta-MCI (MVP)
Hi! I am also interested by Python on Symbian-series 60 @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] Data Plotting Library DISLIN 9.2

2007-10-10 Thread M�ta-MCI (MVP)
Thanks! I play with this library, for fun ; with success. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python in HTML Application (HTA)

2007-10-13 Thread M�ta-MCI (MVP)
Hi! I give a solution in the french newsgroup. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing event handler for dropdown list in python

2007-11-23 Thread M�ta-MCI (MVP)
Hi! Please, specify which way you chose, for Python (client-side): wxpython, active-scripting, qt, pluie, other... @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there pointer * in Python?

2007-11-23 Thread M�ta-MCI (MVP)
Hi! > like in C Why think to C? Why not Cobol? APL? Intercal? For think right in Python, forget C, forget others languages, think inside Python... Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

PIL + show() + Vista

2007-11-29 Thread M�ta-MCI (MVP)
Hi! This code: import Image img = Image.open(r"D:\ParisNude.jpg") img.show() Don't run on my Vista computer. I have a solution: import Image,os img = Image.open(r"D:\FLundhNoNude.jpg") os.startfile(img.filename) It's only in my case? It's censure? ;-) PIL does not

Re: PIL + show() + Vista

2007-11-30 Thread M�ta-MCI (MVP)
Hi! Sorry, I don't understand english. But, with Babelfish-translation, I recovered essence... (you should learn French ; yes! yes! yes!) > I'm glad you found a solution Thank you for your solicitude > if that executable doesn't honour the wait I have just try on another CPU, with a very

Re: PIL + show() + Vista

2007-11-30 Thread M�ta-MCI (MVP)
Hi, Tim! You are right, for shimgvw.dll (on XP / 2000, or some Vista). But others Vista (ou users practice) had associate images with WindowsPhotoGallery.exe. But shimgvw.dll already exist. I found that this line: command = 'start "%s" /wait %s\\System32\\rundll32.exe %s\\System3

Re: PIL + show() + Vista

2007-11-30 Thread M�ta-MCI (MVP)
Re! I have found the problem. On Vista, the Windows-Photo-Galery (soft default displayer) don't wait. Even with START /WAIT (in Image.py & _showxv), it don't wait. Then, like the preview don't wait, the (next) "DEL" run prior the end of the launch of the software ; and Windows-Photo-Galery d

Re: PIL + show() + Vista

2007-11-30 Thread M�ta-MCI (MVP)
Hi! Not a true solution ; because people who don't have IrfanView don't use it. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL + show() + Vista

2007-11-30 Thread M�ta-MCI (MVP)
Re! I have found a (very) poor solution: in Image.py, inside _showxv function, replace command = "start /wait %s && del /f %s" % (file, file) by command = 'start "%s" /wait "%s\\System32\\mshta.exe" "%s" && del /f "%s" ' % (title,os.environ['WINDIR'],file,file) For zoom in preview, use

Re: GUI development with 3D view

2007-12-10 Thread M�ta-MCI (MVP)
Hi! > no idea how it works with windows. On XP: fine. On Vista: very difficult... @+ MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI development with 3D view

2007-12-10 Thread M�ta-MCI (MVP)
Re! On Vista, OpenGL depend of (releases of) video-cards. Some cards don't support OpenGL => problem! Some cards have native openGL support => good (dream?) Some cards need update (drivers) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Pb with 2.5.2 & PyScripter

2008-03-01 Thread M�ta-MCI (MVP)
Hi, all! Since the install of Python 2.5.2, Pyscripter (1.9.9.1) close for each error. Is it only me? Or another guys have the same thing? @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python COM automation - Controlling Microsoft Agent

2008-03-01 Thread M�ta-MCI (MVP)
Whaoouuu! A young newbie! Thanks... for others youngs newbies. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pb with 2.5.2 & PyScripter

2008-03-01 Thread M�ta-MCI (MVP)
Re! An exemple. With this script: a=123 b=456 d=a+b+c (note than 'c' is not defined). When I run, inside Pyscripter, the error-dialog is showed, and, one second after, PyScripter is closed. This problem is present since Python 2.5.2. I search, for know if it's a problem only on my c

Re: Pb with 2.5.2 & PyScripter

2008-03-01 Thread M�ta-MCI (MVP)
Hi! Thank you for return. I will uninstall+reinstall Pyscripter. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Pb with 2.5.2 & PyScripter

2008-03-01 Thread M�ta-MCI (MVP)
Hi! Problem solved, after reset layouts. Thanks, all! Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Internet Explorer 8 beta release

2008-03-06 Thread M�ta-MCI (MVP)
Hi! > compliance with the W3C standard Ouarf! Ouarf! which navigator has been compatible with CSS-3, left for several years? And, it's only ONE point... @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-PHP bridge?

2008-03-13 Thread M�ta-MCI (MVP)
Hi! Only under Windows, you can use PHPscript. It's the "active-scripting" release of PHP. With it, you can send PHP's functions (source), and call these functions (with parameters). With the same method, you can also use, from Python, VBscript, Jscript, PerlScript, RubyScript. @-salutations

Re: placing a Python com object into Excel

2008-03-17 Thread M�ta-MCI (MVP)
Hi! Perso, I started from "excelAddin.py" (in C:\Python25\Lib\site-packages\win32com\demos). And, I'm happy with the result (who run OK with Excel 2000, XP, 2007). @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Free Download - Microsoft Windows 7 Beta

2009-01-09 Thread M�ta-MCI (MVP)
Hi! I downloaded W7 two days ago, directly on MSDN (Microsoft), and not on a bizarre, unknown site, and doubtful. Python 2.6 run OK. But the problem (well known) with Python 2.6.1 is always present. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows Tablet RealTimeStylus in Python

2009-01-17 Thread M�ta-MCI (MVP)
Hi! I use Internet-Explorer like (as?) GUI. Then, I insert Active-X components (from Tablet-PC, native or SDK). Another solution: create a .HTA, and use PythonScript (version "ActiveScripting" of Python, who become with pyWin32). @-salutations -- Michel Claveau -- http://mail.python.org/ma

  1   2   >