Hi!
Me, because some bugs in 216, I come back to 214...
(215 has another bugs).
@-salutations
--
MCi
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
+1
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
+1
Gelonida confuses "Windows permissions" and "NTFS's rights".
(too) Many Windows users are unfamiliar with Windows.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Re !
> This is because 32-bit processes (Python, 32-bit cmd) cannot see the
> 64-bit DLLs in System32.
Thanks.
You are right... but it is not enought.
This command: echo %PROCESSOR_ARCHITECTURE%
give the statut:
32: x86
64: AMD64
and DIR C:\Windows\System32\SoundRecorder.exe is OK
Hi!
(sorry for my bad english...)
On Win 7 64 bits:
Command-Line
CD \Python27
dir C:\Windows\System32\SoundRecorder.exe:==> OK
Python.exe
>>> import os
>>> os.system("dir C:\\Windows\\System32\\SoundRecorder.exe")
==> Do not found the file !!!
and os.system("cmd /k") then "dir
Hi!
In my Win è 64 bits, python27.dll (and others DLLs like pythoncom27.dll,
pythoncomloader27.dll or pywintypes27.dll) are in C:\Windows\SysWOW64
And (my) Python 2.7.2 run perfectly.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Re!
And why the problem no exist with PIL 1.1.6? (only 1.1.7)
Is that the version 1.1.6 does not use these libraries?
@+
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> you need to install the appropriate libraries, among which are:
> libjpeg-devel
> freetype-devel
> libpng-devel
OK, but where can I find it? I want use PIL with Python under Windows,
and I can't compile C's sources.
Should I replace PIL by ImageMagick?
@-salutations
--
Michel Claveau
-
Hi!
On my system, thera are not "twain32.dll" or "twain_32.dll", but "twain.dll"
@+
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
On windows, install a "Generic" printer, on "FILE:" port.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I am, also, very interested in the answers.
Thank you for asking this question.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Python 32 bits (& Pywin32) limits are:
2 GB on win.7_32 bits
4 GB on win.7_64 bits
That's what I found in my tests.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Try this line:
"C:\Program Files\Windows NT\Accessories\wordpad.exe" /p D:\data\fil.rtf
(change the path if you have a windows 64 bits)
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hello!
> The "InternetExplorer.Application" automation object doesn't contain
> any way to manipulate tabs directly
False. Try this example:
import win32com.client
for instance in
win32com.client.Dispatch('{9BA05972-F6A8-11CF-A442-00A0C90A8F39}'):
print instance," URL :",instance.Loc
Hello!
You will find (positive) answers in PyWin32 and his examples.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> "cp65001" isn't in Python's encoding tables.
CP65001 is an alias for (partial) UTF-8
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
1) the good syntax is:
# -*- coding: latin-1 -*-
print "**"
oo = "ö"
print "char=<%s>" % oo
print "**"
2) in the console (commandLine), use this command: CHCP
Hello!
SL (SilverLight) is a library/techno who give functions.
You cannot compile Python on SL (SilverLight).
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Re!
Sorry for time, but I am very busy...
With Python + Pywin32, you can force the activation of a window (before
send some keys...)
See:
win32gui.SetForegroundWindow(w_handle)
or
win32gui.SetActiveWindow(w_handle)
For to find a windows (and his handle), see:
win32gui.EnumWindows()
Hello!
(*** sorry for my bad english***)
I have the message (title), but only with PIL 1.1.7 (Windows XP, Vista
or 7 (32 bits or 64 bits)).
I tried:
_imaging.pyd exist in C:\Python26\Lib\site-packages\PIL
OK
python -v
>>> import Image
OK
sys.path contain C:\Python26\Lib\site-packages\P
Hi!
Example for send ^V (with PyWin32):
import time,win32api,win32con
win32api.keybd_event(win32con.VK_CONTROL, 0, 0, 0)
win32api.keybd_event(ord('V'), 0, win32con.KEYEVENTF_EXTENDEDKEY | 0, 0)
time.sleep(0.05)
win32api.keybd_event(ord('V'), 0, win32con.KEYEVENTF_EXTENDEDKEY |
win32c
Re !
More details:
C:\Python26\Lib\site-packages\win32comext\axscript\Demos\client\ie\demo.htm
@+
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
You must register Python as ActiveScripting's language.
See : C:\Python26\Lib\site-packages\win32comext\axscript
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Scintilla come like a "control" (a piece for a window), raleted to the
file SciLexer.DLL
For call the scintilla-componant, use "messages". Example :
SendMessage(Sci, SCI_GOTOLINE, line, 0)
For the constant SCI_GOTOLINE, I suggest scintillacon.py, include in
Pywin32.
@-salutations
--
Mich
Re !
> Try your code with u"abcd\xa1" ... it says it's ASCII.
Ah? in my computer, it say "False"
@-salutations
--
MCi
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Another way :
# -*- coding: utf-8 -*-
import unicodedata
def test_ascii(struni):
strasc=unicodedata.normalize('NFD', struni).encode('ascii','replace')
if len(struni)==len(strasc):
return True
else:
return False
print test_ascii(u"abcde")
prin
Salut !
C'est cela, la solitude du programmeur génial...
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
In several cases, Notes is not registred as COM server.
Depending of installation.
@-salutations
--
MCi
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
With PIL-1.1.7.win32-py2.6 and Windows 7, I have this traceback:
raise ImportError("The _imagingft C module is not installed")
ImportError: The _imagingft C module is not installed
I tested "import _imaging" and several other things, without success.
If I re-install PIL-1.1.6 all run OK.
Bonsoir !
La démarche me semble intéressante.
Je testerai le module quand j'aurai un peu de temps.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
If you are under Vista, or Windows 7, have you unactivate UAC, before
the update?
@+
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Re!
Look also :
>>> print False or None
None
>>> print None or False
False
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> print x or y or z
> If none of the potential values are considered boolean false
But :
a=None
b=False
c=None
print a or b or c
> None
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
AMHA (IMO), it is PyQT4 who change the DLL loader...
@+
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Thanks for this idea.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> side-by-side configuration is incorrect
Others have given you an explanation.
A possibility: you use a DLL directly, without having installed.
That is OK with some DLL, and no OK with others DLL.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Install a resident soff (script) by task-planified, in Administrator
rights. Then, call this script from current work, for bypass UAC.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Where (directory) are you, when the problem come?
Have you try with UAC disabled?
@+
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> Symbolic links are available in NTFS starting with Windows Vista.
No.
Hardlink come with NTFS, and already exists in W2K (and NT with specifics
utilities).
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I had write PLUIE, for use DHTML as GUI:
http://www.ponx.org/ponx/guie.htm
But it is not a good answer to your problem. Sorry.
Nevertheless, there are several functions & methods
for generate DHTML objects (and Python keep the
control on each object.
@+
--
Michel Claveau
*** sorry fo
Hi!
For Windows, you can use the command-line tasklist
Example:
tasklist
tasklist /FI "IMAGENAME eq iexplore.exe"
tasklist /FI "PID eq 4044" /FO LIST
The last line is for known PID. Prior for search by (exe's) name.
Note than STATUS give if the process is RUNNING / NOT RESPONDING / etc
Hi!
IronPython is an implementation of Python.
IMO, this group talk about all Pythons.
Therefore, for me, this group is OK.
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> If it's a binary file...
OK, but... what is a "binary" file?
@+
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Warning with lower/uppercases!
Try to make two versions of your methods (ex.: "add" & "ADD"), for study.
@+
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Your computer is too slow, for launch Excel.
Configure the machine for more speed...
@+
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
You forget to write "urwid" do not run under Windows.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
You forget to write "urwid" do not run under Windows.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
You forget to write "urwid" do not run under Windows.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
The only way I know is to use sendkeys.
@+
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Try to unactive UAC...
@+
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
On windows, you can record sound who play on the local sound-card.
It is not really Python scripting, but Python can launch it.
@+
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
See:
http://docs.python.org/tutorial
(section 5)
@+
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
import os
os.system('cmd /c type L:\\source.fic >L:\\destination.txt')
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> Tkinter is part of the Python standard library
Yes.
But...
tkinter is a wrapper to tcl/tk, who is written in tcl. Ok, tcl is given with
Python (standard library).
Therefore, you sentence:
'Are you really ruling out its use for a "pure Python" solution?'
Is well done...
;-)
Michel Claveau
Hi!
Perso I use a wrapper to RMCHART.
There are two versions : DLL & COM. I prefer COM.
Warning : only on Windows's family.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
What is this final comma?
@+
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Bonjour !
Plusieurs points :
- Python (ainsi que Pywin32) fonctionne TRÈS bien sous Windows-7 (je
l'utilise depuis plus d'un an, sur Win-7 beta, RC, RTM, en 32 bits et en 64
bits). Résultats : AUCUN problème.
- Il existe des sources françaises (newsgroups, sites, forums, etc.) qui
peuvent
Bonsoir !
Tu aurais peut-être dû répondre en anglais (pour certains, "advanced features",
c'est mieux que "concepts sophistiqués").
@+
MCI
--
http://mail.python.org/mailman/listinfo/python-list
(envoyé via news:\\news.wanadoo.fr\comp.lang.python)
Hi!
Yes, the module sets is written, in doc, like "deprecated".
But:
- sets exist in Python 2.6 (& 2.5 or 2.4)
- documentation of sets (module) is better tha, documentation of set
(builtin)
The best: read the documentaion of the module
Re !
Juste pour signaler qu'il existe un newsgroup en français sur Python, qui
permet de recevoir des réponses en français (donc plus complètes/détaillées).
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
(envoyé via news:\\news.wanadoo.fr\comp.lang.python)
Hi!
See the module "sets"
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
If you are under Windows, you can drive IE, for indirect drive the web-pages.
In this case, you can then interact with pages & the javascript's scripts
included.
For more, see Pywin32, Pamie, Pxie, etc.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-l
Hi!
> Python doesn't run in your typical web browser
Yes, Python can do it... on Windows.
Two (examples) ways:
- ActiveScripting (PythonScript), include in PyWin32
- Gestalt (who mix Python, Ruby & Javascript, via Silverlight)
And alse, these two solutions run OK in HTA (HTml Application) fo
Hi!
I use, all days, Python 2.6 + Pywin32 on Win-7-64 bits. Without problem
(I confirm : pywin 32 on 64 bits).
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
> SAMBA is a Linux implementation of the SMB protocol, natively supported on
> Windows.
Right.
But, with Vista or Seven, only recents releases of Samba are supported.
And, Samba know only NTLM release 2
(in register:
HKLM\SYSTEM\CurrentControlSet\Control\Lsa
value LMCompatibilityLevel
Hi!
> Python is interpreted
No. Python is compiled (--> .pyc)
But the term "to compile" is not always unambiguous...
And the notion of "compiler" is not attached to Python (the language), but is
attached to the implementation.
@+
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Bonsoir !
Un exemple là: http://www.mclaveau.com/grimoire/bleu.html#999
@-salutations
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
On Windows, you can drive (manage?) ImageMagick from Python, via COM.
See: http://www.imagemagick.org/script/api.php#com+
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Suppose that the (web) site give the file only after several seconds, and after
the user click a confirm (example: RapidFile).
Suppose that the (web) site give the file only after the user input a code,
controled by a javascript script.
@-salutations
--
Michel Claveau
--
http://mail.py
Hi!
I have a similar problem, with Python 2.6.1 and pywin32. Since python
2.6.1.
Return to 2.6: OK ; re-install 2.6.1: the problem return.
No solution to this day.
The problem is known, but not resolved
In the expectation, I stay in 2.6
@-salutations
--
Michel Claveau
--
http://mail.python.o
Hi!
Try:
os.system("""start "" cmd /css checkout
$\projectName\file -Yusername,password -c'Test comment' """)
(not tested ; it's directly from my memory)
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
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
Hi!
The mountain Python-3000 gave birth to a mouse Python-3.
You must waiting for Python-4000...
@+
MCI
--
http://mail.python.org/mailman/listinfo/python-list
python is great.
No.
Python is VERY GREAT !!!
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
map(multby3, (1, 2, 3, ))
...with lambda:
map(lambda x: x*3, [1,2,3])
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
If you are under Vista, you must change the LSA parameter.
See:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
LMCompatibilityLevel
try with value 1 or 0
And use a Samba not too old.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/
Hi!
Sometimes, PIL give an error. With "try: Except:", you can get info.
Sometimes, non error, but the Jpeg is not correct. Difficult, in this
case, to get info.
Therefore, the answer is: "not in all cases".
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-li
Hi!
Fredrik Lundh (Pythonware ; the author of PIL (and ElementTree, and
many other things)) had, in the past, often give answers.
To me, like to others people.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
This info is interesting for many people.
IMO, it's a good idea to write the question in this newsgroup.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Look at http://www.mayukhbose.com/python/ado/ado-connection.php
That run OK with Python 2.6
@-salutations
--
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
M. Hammond said (wrote) said that the work is enormous, because
modifications of the C architecture of Python 3 was largely modified.
(sorry for my bad english)
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Multiple versions of Python is possible (example: Python standard +
Python by OOo).
But, multiple versions of Python+PyWin32 is not possible.
Suggestion: use VirtualBox or Virtual-PC.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Can I do this in python?
No.
The "default page" is a property of the web-server ; and it is not
client side.
Examples :
for Apache, it's index.html or index.htm ; but if PHP is installed,
index.php is also possible.
for APS, it's init.htm (between others possibilites).
etc.
@-s
Merci beaucoup.
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Hello!
version 9.4 of DISLIN
Thanks!
I like Dislin.
But...
I don't found the release (binary/win) for Python 2.6...
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Very interesting.
Roger, thank you very much super enormous!!!
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
You can manage Skype from Python('s scripts), for use the
functionalities of Skype to send SMS.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Thanks for return.
Some infos: from a long time, I found that it's often more fast to use
windows's command, instead of develop in high level language (and also,
low level...)
FINDSTR is fast. OK. But internal commands are more fast. Example : DIR
(with all his options)
And it's faste
Hi!
On Windows, you can use the (standard) command findstr
Example:
findstr /n /s /I strsearched *.py
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Bonjour !
AMHA, ceux qui ont écrit ce texte ont une mauvaise idée de ce que sont
les variables en Python.
Ils ont sans doute trop en tête les notions des variables en C ou en
Basic, et ne se sont pas penchés sur les spécificités de Python.
@-salutations
--
Michel Claveau
--
http://mail
Hi!
Everything ... are an object.
It's true ; but a language built around the objects, and OOP, are two
different concepts.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Par Toutatis !
Si tu avais posé la question à Ordralphabétix, ou sur un des ng français
consacrés à Python, au lieu de refaire "La grande Traversée", la réponse
aurait peut-être été plus rapide.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
More easy:
os.system('cmd /c c:\\temp.bat')
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Replace:
os.startfile("launch_trace.bat")
by
os.startfile('start "" cmd /c launch_trace.bat')
and "le tour est joué".
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
See: system( startfile( subprocess( spawn( etc.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
See here:
http://www.ponx.org/download/CD/COMdll/autoitmmap.dll
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Example, with Pywin32:
import win32com.client
moncom = win32com.client.Dispatch('MyCOM1.AdvMethod')
moncom.IAdvMethod(...
See Pywin32 here: http://sourceforge.net/projects/pywin32/
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
H... I have a similary problem, in another circumstances.
It's often a problem of configuration of IE (for news customers). But,
it is not easy, because IE has many parameters.
Good luck!
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Is there a way to do similar things on linux?
I think no. Because these tech use COM. And COM don't exist under xxnux.
But:
- look if XPCOM, or dBus) can help you
- search with the word "MOZLAB", who work a solution (plugin) for
drive Firefox, from an external software.
Good luck!
--
1 - 100 of 150 matches
Mail list logo