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 :
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
Hi!
Super mega cool.
Thanks!
MCI
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
That depends on what we call console.
Python console?
or
Windows console?
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
See :
http://www.activeperl.com/Products/Visual_Perl/?mp=1
@+
MCI
--
http://mail.python.org/mailman/listinfo/python-list
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
--
vxworks tasks writes to a reserved area of memory.
Is it compatible with the mmap module ?
--
http://mail.python.org/mailman/listinfo/python-list
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
+1
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
Hi!
See http://mclaveau.com/ress/python/zipmci.htm
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
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:
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
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:
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
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
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
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
Hi !
Perhaps... ; better than , :
im=Image.open(rC:\vodka3.png); im.show()
Perhaps... more simplist :
im=Image.open(rC:\vodka3.png).show()
Perhaps... other thing ?
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Thank for links.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
Hi !
Look : .split()
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Look (the doc for) Popen2, Popen3, Popen4 Subprocess
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Perhaps : .Dispactch vs .Dispatch ?
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Thank you for this interesting message.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
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 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,
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
Hi !
Here : http://wikipython.flibuste.net/moin.py/AJAX
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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.
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
--
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
Hi !
Try :
OSCAR='the grouch'
print OSCAR
useless to thank me
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
--
Hi !
See :
http://www.gossamer-threads.com/lists/python/bugs/350314
--
http://mail.python.org/mailman/listinfo/python-list
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 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
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
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
Hi !
Use Ctypes
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
rather... super troll
--
http://mail.python.org/mailman/listinfo/python-list
+1
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
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
Hi !
You can use WMI, for that.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
:-)
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Or : http://sourceforge.net/project/showfiles.php?group_id=78018
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
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
Hi, you, also !
A view, with a little difference :
def titi(par):
if par222:
return par*2
else:
return par*10
print titi(123)
print titi(1234)
#now, change the function, on instant
txt=def titi(par):
if par222:
return str(par)*2
else:
return
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
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
Hi !
Look ctypes, for call the DLLs
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
+1
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
I confirm for IE. Others, I don't know.
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
And, also, with dotNET-framework
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
This DLL come also with MS-JVM engine, who is free. Therefore...
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
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
+1
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
Same question.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
a  aaa'
0123456
It's OK
--
http://mail.python.org/mailman/listinfo/python-list
And this run OK for me :
s = 'a  aaa'
print s
print s.replace('Â', '')
--
http://mail.python.org/mailman/listinfo/python-list
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
Hi !
Finally, it's the best solution.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
4
--
http://mail.python.org/mailman/listinfo/python-list
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
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
--
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
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
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)
print
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
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
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
See Pamie :
http://pamie.sourceforge.net
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Oh, Sorry, I had read too fast.
I see, now, the word Mac.
Apologies.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
It's OK for me
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
You can found few ideas here :
http://candygram.sourceforge.net
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
And :
http://lesuisse.net/pyphp-0.1.tgz
?
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Look for service in PyWin
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
Look the smart/fun use of threads make by
http://candygram.sourceforge.net
It's good for to know...
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
nntplib.NNTP(newsserver,port,user,passe)
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
If you want only search and found element, look dictionnary ; if you want
also to have the order, see the module set.
Good night
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
The good URL is : http://pyscript.sourceforge.net
:-)
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
...Usenet to transmit it properly
newsgroups (NNTP) : yes, it does it
usenet : perhaps (that depends on the newsgroups)
clp : no
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 102 matches
Mail list logo