Telephony project

2005-09-26 Thread Roger
I'm new to Python and need to do a (low level, I think) telephony project ( POTS, all local calling) in WinXp. 1. Fetch phone number from my ASCII data. 2. Dial (always a local number) phone (through USRobotics 56K? ). 3. Ask @3 questions to called phone number. Y/N Y/N Y/N 4. Save ans

Re: Telephony project

2005-09-27 Thread Roger
"CheckOn" is the working name for my project. Our church community has many elderly who are at home but close to assisted living placements. Many do not have family and rely on volunteer caretakers and lunch providers for their socialization. We are trying to make phone contact with t

Re: Telephony project

2005-09-29 Thread Roger
Thanks for all the helpful postings! A clearer specification for my project is that the CALLER speaks directly to list_member. And enters, thru GUI checkbox(s), answering: r_u_ok?; Send chuch member to visit list_member; call Social Worker, help needed, etc. An important element is to verify

Predicting Thumbnail Sizes from PIL

2005-09-11 Thread Roger
rounding results in 683. But PIL produces an image of 684x697. Is there an easy rule that will always work -- like adding .67 instead of .5? Roger -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and version control

2005-02-10 Thread Roger
Subversion repository. These things let you access revision control features from context (right-button) menus right in Windows Explorer, as you browse the file system. Seconded. Thirded. Johann Fourth-ed! Roger -- http://mail.python.org/mailman/listinfo/python-list

Is it possible to use the logging-module in a threadless environment?

2005-02-17 Thread Roger
ng as threading Thanks in advance, Roger Erens -- http://mail.python.org/mailman/listinfo/python-list

PILGraph Upgrade or Alternative Suggestion

2006-09-07 Thread Roger
multi-platform for both Linux and Windows. The intended use is to create graphics for web pages on the fly. TIA, Roger -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for the Perfect Editor

2006-09-14 Thread Roger
or will use different keystroke and mouse sequences when presented with similar editing problems. Good discussion - I thank the originator of the thread. Roger -- http://mail.python.org/mailman/listinfo/python-list

smtplib, gmail, quit vs. close and SSL3_GET_RECORD:wrong version number

2007-08-05 Thread Roger
gt;> I have not had this problem with other mail servers (but only tried two). A solution for gmail seems to be to replace the server.quit() with server.close(). The difference between the two commands is quit() sends a 'QUIT' string before calling close(). Because close() is not included in the smtplib docs, it does not appear to be the right solution. What is the correct way to terminate a gmail session? Roger -- http://mail.python.org/mailman/listinfo/python-list

Alternatives for Extracting EXIF and JPEG Data from Images

2007-03-04 Thread Roger
le and may not be callable from a Python script even if it were available. Roger -- http://mail.python.org/mailman/listinfo/python-list

Re: Alternatives for Extracting EXIF and JPEG Data from Images

2007-03-04 Thread Roger
Max Erickson wrote: > Roger <[EMAIL PROTECTED]> wrote: > >> Does anybody have a pointer to a Python library/utility that will >> extract the chrominance and luminance quantization tables from >> JPG images? >> >> I have been using the _getexif method

Unbinding Tkinter default bindings for Listbox

2009-01-11 Thread Roger
t step was to see if I could just unbind B1-Motion then programmatically delete tkListboxMotion in my code but tkListboxMotion is not available in the Tkinter source (it's part of a compiled binary I can't reach?). Any help would be greatly appreciated. Thanks! Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unbinding Tkinter default bindings for Listbox

2009-01-12 Thread Roger
d B1-Motion from Listbox even though I get the same output results as you've gotten above. =( Thanks a ton James. This is still very educational to me. Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unbinding Tkinter default bindings for Listbox

2009-01-12 Thread Roger
I'm sorry for harassing the list but any suggestions would be greatly appreciated. =) -- http://mail.python.org/mailman/listinfo/python-list

Re: Unbinding Tkinter default bindings for Listbox

2009-01-12 Thread Roger
ago. I had mixed feelings about asking for help on this because I wanted so badly to figure it out myself but I became so exasperated especially after combing through the TCL source to no affect. Now that you've given me the correct solution it seems like the Leave event should have been

Re: basic python list/dict/key question/issues..

2009-01-13 Thread Roger
On Jan 13, 11:59 am, "bruce" wrote: > Hi.. > > quite new to python, and have a couple of basic question: > > i have >  ("term":["1","2","3"]) > > as i understand it, this is a list, yes/no? > > how can i represent this as a dict/list? > > i've got a few of these that i'm trying to deal with.. > >

Re: Why this code is working?

2009-01-14 Thread Roger
On Jan 14, 8:08 am, r wrote: > I guess where i come from > freedom is second nature so i took to python pretty quick. Wow, that's presumptive, assuming, and harsh. Not at all helpful and unnecessary. Geez... -- http://mail.python.org/mailman/listinfo/python-list

Re: is None vs. == None

2009-01-25 Thread Roger
> And, just for completeness, the "is" test is canonical precisely because > the interpreter guarantees there is only ever one object of type None, > so an identity test is always appropriate. Even the copy module doesn't > create copies ... > Does the interpreter guarantee the same for False and

Re: is None vs. == None

2009-01-25 Thread Roger
> Why do you think it matters? Intellectual curiosity hence why I asked the question. It doesn't matter if I know why the sky is blue but it's interesting to know regardless. -- http://mail.python.org/mailman/listinfo/python-list

Tkinter unbinding

2008-12-18 Thread Roger
oot.unbind("<1>", funcid2) root.mainloop() When run neither <1> binding will exist against the root because the unbind will unbind all the functions associated with that event. However, in this example, I only want to unbind test2 not test1. Any help is greatly appreciated. Thanks! Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter unbinding

2008-12-18 Thread Roger
>funcid1 = root.bind("<1>", lambda e: test()) >funcid2 = root.bind("<1>", lambda e: test2(), add='+') >root.unbind("<1>", funcid2) Isn't this what I've done in my example code? -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter unbinding

2008-12-18 Thread Roger
On Dec 18, 11:40 am, r wrote: > Yea, my answer was really not a helping answer(sorry) just showing > exactly why this will not work with w.unbind(). Why do you need two > separate functions to bind the same event?? You cannot combine the > two?? I can't combine the two in my app unfortunately. T

Re: Tkinter unbinding

2008-12-18 Thread Roger
On Dec 18, 12:49 pm, r wrote: > Maybe someone will chime in with an answer, sorry i could not help. > ponder this, i must... Regardless, thanks for your help! I truly appreciate it. Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter unbinding

2008-12-18 Thread Roger
On Dec 18, 12:49 pm, r wrote: > Maybe someone will chime in with an answer, sorry i could not help. > ponder this, i must... Regardless, thanks for your help! I truly appreciate it. Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter unbinding

2008-12-18 Thread Roger
On Dec 18, 12:49 pm, r wrote: > Maybe someone will chime in with an answer, sorry i could not help. > ponder this, i must... Regardless, thanks for your help! I truly appreciate it. Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter unbinding

2008-12-18 Thread Roger
On Dec 18, 12:49 pm, r wrote: > Maybe someone will chime in with an answer, sorry i could not help. > ponder this, i must... Regardless, thanks for your help! I truly appreciate it. Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter unbinding

2008-12-19 Thread Roger
tive months mind you) on various projects, it's like an old persnickety friend you just can't give up. =) Thanks a ton! Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter unbinding

2008-12-19 Thread Roger
s such as __call__. I need to do some more reading. Roger. -- http://mail.python.org/mailman/listinfo/python-list

"return" in def

2008-12-28 Thread Roger
Even when I'm not explicitly returning something I like to add "return" because it's a good additional visual marker for me to see where a method definition ends especially in cases where I may use a nested method. Thanks for the discussion! Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: "return" in def

2008-12-28 Thread Roger
> Curious. When I see a bare return, the first thing I think is that the > author forgot to include the return value and that it's a bug. > > The second thing I think is that maybe the function is a generator, and > so I look for a yield. If I don't see a yield, I go back to thinking > they've left

Re: "return" in def

2008-12-28 Thread Roger
On Dec 28, 5:12 pm, John Machin wrote: > On Dec 29, 7:06 am, Roger wrote: > > > > > > Curious. When I see a bare return, the first thing I think is that the > > > author forgot to include the return value and that it's a bug. > > > > The secon

Re: tkInter constraining the width only

2008-12-29 Thread Roger
using .pack() and according to the docs it's in grid coordinates if you're using .grid() Good luck! Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not Ruby?

2008-12-31 Thread Roger
On Dec 31, 12:55 pm, Xah Lee wrote: > Just spent 3 hours looking into Ruby today. Here's my short impression > for those interested. > Who are you? In case no one tells you, you are a cocky, egotistical windbag with opinions that border constructive but never gets there. Why would anyone care

Re: Tkinter - problem closing window

2009-01-05 Thread Roger
On Jan 5, 11:52 am, Collin D wrote: > On Jan 5, 6:25 am, "Djames Suhanko" wrote: > > > > > Hello! > > I'm sorry my terrible english (my native language is portuguese). > > I has a litle program that open another window. When I close de root > > window in quit button, I need clicking 2 times to cl

Re: Python subprocess question

2009-01-06 Thread Roger
On Jan 6, 7:46 am, Duncan Booth wrote: > "Alexi Zuo" wrote: > > Hi everyone, > > > Here I have a simple program which starts a thread and the thread use > > Popen to execute a shell cmd which needs a long time.  I want to stop > > the thread once I type "ctrl+C" (KeyboardInterrupt). But in fact t

Re: Python subprocess question

2009-01-06 Thread Roger
On Jan 6, 1:18 pm, s...@pobox.com wrote: >     Roger> .setDaemon(True) means the thread gets destroyed when the program >     Roger> exits and default .setDaemon(False) means that the thread >     Roger> continues to process even when the main program is gone? > > Approxi

Re: State of the art: Tkinter, Tk 8.5, Tix?

2009-01-07 Thread Roger
On Jan 7, 2:31 pm, excord80 wrote: > Does Python work with Tk 8.5? I'm manually installing my own Python > 2.6.1 (separate from my system's Python 2.5.2), and am about to > install my own Tcl/Tk 8.5 but am unsure how to make them talk to > eachother. Should I install Tk first? If I put Tk into my

Re: Where's Psyco now?

2009-01-09 Thread Roger
On Jan 9, 2:21 pm, "Chris Rebert" wrote: > On Fri, Jan 9, 2009 at 10:41 AM, Vicent wrote: > > Hello. This is my first message to the list. > > > In this article written in 2002 > > >http://www.ibm.com/developerworks/library/l-psyco.html > > > they talk about Psyco as a module that makes it possib

I wander which is better? JSP or Python? And is there a place for JSP?

2010-06-27 Thread Roger
As I plan to study JSP, I find it extremly complicated and a part of J2EE. I did not attend to get the whole of J2EE. I hope anybody can describe the future of JSP. Is there a place for JSP? -- http://mail.python.org/mailman/listinfo/python-list

How To Use Python/GDAL to create a KML file from an Image?

2012-01-29 Thread Roger Zimmerman
ple Python scripts of how to do it somewhere? Any ideas appreciated! Cheers Roger Zimmerman -- http://mail.python.org/mailman/listinfo/python-list

Re: An ODBC interface for Python 3?

2011-07-02 Thread Roger Upole
omeone else has already figured out how to make this happen, > please let me know. Pywin32 has an odbc module that works with Python 3.2. Roger -- http://mail.python.org/mailman/listinfo/python-list

Is it possible to execute Python code from C++ without writing to a file?

2011-04-15 Thread Roger House
But it seems like it should be possible to do this without writing the Python code to a file. I tried PyRun_String, but I can't see how it can be used to return a tuple (the Py_file_input option always returns None). Any help will be greatly appreciated. Roger House Software Developer

Pickling over a socket

2011-04-19 Thread Roger Alexander
= read(1) File "/usr/local/lib/python2.7/socket.py", line 380, in read data = self._sock.recv(left) socket.error: [Errno 107] Transport endpoint is not connected I'm at a loss, can anyone provide any guidance? Thanks, Roger Alexander 1 import pickle 2 import socke

Re: Pickling over a socket

2011-04-19 Thread Roger Alexander
Thanks everybody, got it working. I appreciate the help! Roger. -- http://mail.python.org/mailman/listinfo/python-list

Re: subprocess considered harmfull?

2005-09-25 Thread Roger Upole
dle returns 0. _subprocess.GetStdHandle returns None if the handle is 0, which gives the original error. Pywin32 just returns the 0, so the process gets one step further but still hits the above error. Subprocess.py should probably check the result of GetStdHandle for None (or 0) and throw a readable er

Re: subprocess considered harmfull?

2005-09-26 Thread Roger Upole
"Uri Nix" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Roger Upole wrote: >> "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> > Steven Bethard wrote: >> > >> >> > Using

Re: Font management under win32

2005-09-29 Thread Roger Upole
ne, callback, fonts) The parameters to the callback need to be documented. I had to look at the source to figure out what to expect. hth Roger == Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News== http://www.newsfeeds.com The #1 Newsgroup Service in the Wo

Re: Python script to install network printers

2005-10-04 Thread Roger Upole
You can use win32print.AddPrinterConnection(r'\\server\sharedprinter'). However, if the printer driver has to be copied to the client machine and installed, that's probably where most of the time is spent. hth Roger "Matt Chan" <[EMAIL PROTECTED]&g

Re: Creating internet shortcuts

2005-10-09 Thread Roger Upole
ww.python.org' s.Save() hth Roger "Richard Townsend" wrote: > I've seen the python.faqts page: > http://www.faqts.com/knowledge_base/view.phtml/aid/4475/fid/538 on how to > create windows shortcuts using Python. > > Does anyone know if this be adapted to create in

Re: win32com, generating the cache programaticaly?

2005-10-11 Thread Roger Upole
CLSID of "LabVIEW data 7.1" and put it into the > generated file.. sort of?? > You can use win32com.client.gencache.EnsureDispatch to automatically generate the makepy file for an object's library when the object is created. Use the bForDemand option to only generate the code f

Re: odbc errors

2005-10-16 Thread Roger Upole
base ASE > driver]Invalid cursor state. in FETCH None > > but when i did check the table, the value of col is updated to 'A', > how can i suppress the above error message? or is there some other > things > that are wrong with the code. > thanks > The update is pe

Re: pushing python to multiple windows machines

2005-10-21 Thread Roger Upole
=r'\\someserver\someshare\python-2.4.2.msi' inparams.Properties_('AllUsers').Value=True outparams=p.ExecMethod_('Install',inparams) print outparams.Properties_('ReturnValue') ## zero on success Roger == Posted via Newsfeeds.Com - Unlimited-Uncensor

Re: Using Python to add thumbnails to Explorer

2005-10-26 Thread Roger Upole
ample, you have HKCR\.py with Default=Python.File, and under HKCR\Python.File\DefaultIcon, you should have the path to py.ico. You can use the _winreg module to create your own entries. hth Roger "c d saunter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTEC

Re: Small utility program for the windows

2005-10-26 Thread Roger Upole
It works fine for me (XP, Python 2.4.2). Where exactly do you get the access denied ? When writing to the registry, or trying to start python, or within the python code ? Roger "Iyer, Prasad C" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I am trying t

Re: Using Python to add thumbnails to Explorer

2005-10-26 Thread Roger Upole
Sorry, I didn't realize you meant per-file. However, Pythoncom supports both the interfaces (IExtractIcon and IPersistFile) specified on the page you referenced, so you ought to be able to implement an icon handler with the Pywin32 extensions. Roger "c d saunter" &l

Re: Using Python to add thumbnails to Explorer

2005-11-02 Thread Roger Upole
Not sure how ctypes works, but with Pywin32 Pythoncom24.dll is actually registered as the shell extension dll, and it passes calls to methods of a Python class you create that implements the interface methods. Roger "c d saunter" <[EMAIL PROTECTED]> wrote in mes

Re: putting an Icon in "My Computer"

2005-11-04 Thread Roger Upole
There's an example of how to add an item to the shell namespace in the Pywin32 demos: \win32comext\shell\demos\servers\shell_view.py hth Roger "yaipa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > All, > > I've been asked by my

Re: NTFS reparse points

2005-11-04 Thread Roger Upole
You should be able to use win32file.DeviceIoControl with winioctlcon.FSCTL_SET_REPARSE_POINT to do this. (winioctlcon was added in build 205) The hard part is going to be constructing the REPARSE_GUID_DATA_BUFFER struct to pass in as the buffer. hth Roger "Stanislaw Findeisen&quo

Re: PyFLTK - an underrated gem for GUI projects

2005-11-06 Thread Roger Binns
t. That way you will only suck in the ones you use. I do like that FLTK has the documentation style as PHP where users can add comments to each page. Roger -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributed Cache Server?

2005-11-06 Thread Roger Binns
a (megabytes, gigabytes, terabytes?) Do you need transactional integrity (eg when are updates seen by other readers)? Do you want redundancy (data duplicated on multiple machines)? How many machines are we talking about? Should failure be automatically detected? Is there a need for security or treat

AJAX => APAX? Or: is there support for python in browsers?

2005-11-15 Thread Roger Erens
th hard work being done by Mark Hammond? I'm asking because of all the AJAX hype going on. I'd like rather not delve too deep into JavaScript and use Python instead. Any insights to be shared? Cheers, Roger -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem printing in Win98

2005-11-20 Thread Roger Upole
According to MSDN, err code 31 from ShellExecute is SE_ERR_NOASSOC, meaning there's not an application registered for printing that file type. Roger "Maravilloso" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > I'm trying to automat

Re: extract python install info from registry

2005-12-06 Thread Roger Upole
"rbt" <[EMAIL PROTECTED]> wrote: > On windows xp, is there an easy way to extract the information that Python > added to the registry as it was installed? You should be able to find all the entries in msi.py that's used to build the installer.

Re: Recent infoworld column

2005-01-09 Thread Roger Binns
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dwarf Electrician wrote: >> from a long time listener... >> >> http://www.infoworld.com/article/04/12/30/01OPstrategic_1.html > > Kudos for Roger Binns! It is a very nice arti

Re: PyChecker messages

2005-01-11 Thread Roger Binns
nes in the source code? Is this the proper way? > > print "asda asda asda asda asda asda " \ > "asda asda asda asda asda asda " \ > "asda asda asda asda asda asda" Depends what you are trying to achieve. Look at triple quoting as well. Roger -- http://mail.python.org/mailman/listinfo/python-list

Re: there's a socket.sendall(), so why no socket.recvall()?

2005-01-16 Thread Roger Binns
Windows error code. I haven't experimented on Unix yet to see if it has the same issue. The workaround is to write a wrapper that really does send everything. Roger -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] iCalendar package 0.9

2005-01-18 Thread Roger Binns
complied with the spirit, but screwed up character encoding, misspelled fields names, didn't do the right thing when commas and semi-colons were present in values etc. I assume the thing happens with ical. Roger -- http://mail.python.org/mailman/listinfo/python-list

Re: Window capture using WM_PRINT and Python

2005-01-18 Thread Roger Upole
ce context handle might not be valid even if you make it an int. hth Roger "arN" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi ! > > I'm a Java developper and I wish to make a capture of an offscreen window > (on WinXP). It's no

Re: makepy crashing

2005-01-18 Thread Roger Upole
, there are a few other lines that exceed 512. I think it's a problem with the encoding. If you remove the mbcs tag (# -*- coding: mbcs -*-) from the top of the generated file, the import succeeds. Roger <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Has anyo

Re: Automatic Windows printer creation?

2005-01-19 Thread Roger Upole
hough. Roger "GMane Python" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Anyone know if there's a module which will allow me to 'create' windows > printer definitions? Not from a Windows domain network, but just to add a > printer that sends

Re: FTPLIB & FTPS or SFTP?

2005-01-19 Thread Roger Binns
plementation of SSH and all the sub-protocols such as SFTP. Works on all platforms, very responsive author, works reliably and LGPL license. (*) It does require PyCrypto which is a native code package available for all platforms. Roger -- http://mail.python.org/mailman/listinfo/python-list

Re: PyWin32 installation

2005-01-24 Thread Roger Upole
Gdi32 needs to be added to the libraries for win32print in setup.py. (just checked it in) Roger "mg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I have reinstalled my Win32 computer last week and I did an update of the >

Re: threading and internet explorer com

2005-01-27 Thread Roger Upole
You'll need to call pythoncom.CoInitialize() in each thread. Roger "James" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi, > > i'm using python 2.4 with pywin32... > I've tried to use internet explorer control with a class. >

Re: PythonWin (build 203) for Python 2.3 causes Windows 2000 to grind to a halt?

2005-01-27 Thread Roger Upole
These look like symptoms of sf bug #1017504 http://sourceforge.net/tracker/index.php?func=detail&aid=1017504&group_id=78018&atid=551954 What version of Pywin32 are you running ? There's a (semi) fix for this in the latest build. hth Roger "Chris P." <[EMAI

Re: Description Field in WinXP Services

2005-01-29 Thread Roger Upole
ChangeServiceConfig2 is the api functions that sets the description, but it's not in the win32service module (yet). Roger "rbt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How does one associate a "Description" with a Windows servi

Re: COM on a network drive can't find pywintypes23.dll

2005-01-31 Thread Roger Upole
x27;s you're copying around both come from the same distribution. Roger "Marco Aschwanden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > I have installed Python (2.3.4) on a shared network drive. I use it to run > a bunch of applicatio

Re: Where is WSAEnumNetworkEvents???

2005-02-03 Thread Roger Upole
>From a quick look, it wouldn't be too difficult to wrap this function. Both the input arguments can be already be handled by Swig, and the outputs would just be an int and a fixed size tuple of ints. Roger <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] &g

Re: Running WMI within a Windows service

2005-06-24 Thread Roger Upole
Build 204 of pywin32 has a change so that the working dir for a service is the folder where its executable is located instead of \system32, hopefully avoiding trying to import wmi.dll instead of wmi.pyd. Roger "Tim Golden" <[EMAIL PROTECTED]> wrote in message news:

Re: connecting to an exsisting COM server

2005-06-24 Thread Roger Upole
Normally you get that if the application doesn't register itself with the Running Object Table. Do you know if the COM server in question registers itself ? Roger "jelle" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I'm usin

Re: exec method WMI

2005-07-13 Thread Roger Upole
You probably need to remove the SpawnInstance_() call. An abstract WMI class as returned by WBEM.Get should work for the DriverInfo parm, since the concrete Win32_PrinterDriver instance is what the AddPrinterDriver call is trying to create. hth Roger <[EMAIL PROTECTED]> wr

Re: 2.4 Recent File list not working

2005-07-14 Thread Roger Upole
There was a bug in MFC 7 that prevented Pythonwin from closing properly. Build 204 of Pywin32 has a workaround, but I'm not sure if it's been incorporated into ActiveState's distribution yet. Roger "Larry Bates" <[EMAIL PROTECTED]> wrote in me

Re: Using SHFileOperation

2005-07-20 Thread Roger Upole
SHFILEOPSTRUCT is just a tuple, with the elements listed in docs. from win32com.shell import shell, shellcon shell.SHFileOperation((0, shellcon.FO_DELETE, 'somefilename', None, shellcon.FOF_ALLOWUNDO|shellcon.FOF_NOCONFIRMATION)) hth Roger "avishay" <[EMA

Re: Jargons of Info Tech industry

2005-08-23 Thread Roger Leigh
t; your backup back to disk, only to notice that the pathnames were "too > long." Great! That's been fixed for quite some time, though. The current GNU tar (1.15.1) writes POSIX.1-2001 (PAX) archives, and has read them for quite a long time before. Regards, Roger - -

Re: python script under windows

2005-09-09 Thread Roger Upole
You can use the Task Scheduler to run a script persistently if you don't need the capabilities of the service framework. Roger "Jan Gregor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello > > I run python script on another compu

Re: HELP!! Accessing other machines with an IIS CGI script

2005-09-14 Thread Roger Upole
et up auditing on the folder you're trying to list, and see exactly what user IIS is connecting as (or if it's connecting at all). hth Roger "paulp" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings, > > I'm working on a CGI pr

Re: CGI Problem on MS IIS 5.0 - Trying to access files on other machines

2005-09-15 Thread Roger Upole
You need to adjust your privileges before you call LogonUser. hth Roger "paulp" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings, > > I'm working on a CGI program that will run under MS IIS 5.0 and will > browse folders on th

Re: win32com.client.GetActiveObject()

2005-09-18 Thread Roger Upole
Basically, this means the application doesn't register itself with the Running Object Table. There's not much you can do about it, except maybe petition whoever makes ITunes. Roger "David Nicolson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTEC

Re: Python win32com com_error: (-2147418113

2005-09-21 Thread Roger Upole
Usually this means the COM object has to run in a full ActiveX container. You can host it in IE, or Pythonwin can act as a container with some effort. See \pythonwin\pywin\Demos\ocx for some examples of using OCX objects that require a container. Roger "g.franzkowiak" <[EM

Re: win32gui bug: where to report it?

2005-02-15 Thread Roger Upole
Win32all is called Pywin32 now, and resides on SourceForge: http://sourceforge.net/projects/pywin32/ Roger "George van den Driessche" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It's taken me ages to find out why my window, built out of win32al

Convert a raw pointer to IDispatch

2005-02-17 Thread Roger That
Hi, I am trying to use the function "CreateStreamOnHGlobal" from python code (I need to pass an IStream object to MSXML, like I do in C++ code). I was able to retrieve a pointer on the IStream object in this way: from ctypes import * stream = c_int() windll.ole32.CreateStreamOnHGlobal(c_long(0),

Re: Convert a raw pointer to IDispatch

2005-02-17 Thread Roger That
Le Thu, 17 Feb 2005 19:22:16 +0100, Thomas Heller a écrit : >> I am trying to use the function "CreateStreamOnHGlobal" from python code >> (I need to pass an IStream object to MSXML, like I do in C++ code). >> >> I was able to retrieve a pointer on the IStream object in this way: >> >> from ctypes

Re: Need some Python help

2005-02-24 Thread Roger Upole
There's a bug in python's tokenizer that's triggered when the generated wrapper code for a COM object has lines longer than 512. See below link for a workaround: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1085454&group_id=78018 Roger &qu

Re: winnt win32process.createProcess with stdout to file ?

2005-03-03 Thread Roger Upole
teFile. hth Roger <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > os:winnt > python2.3.2 > > I have a exe that dumps info to the command line. I want to run this > process and capture the stdout into a file. I think i'

Re: winnt win32process.createProcess with stdout to file ?

2005-03-03 Thread Roger Upole
If it got past the CreateFile call, the problem's not with the log file. This error from CreateProcess means it can't find your executable. Roger <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Roger, I updated the script (below).. but now I get erro

Re: winnt win32process.createProcess with stdout to file ?

2005-03-04 Thread Roger Upole
TerminateProcess doesn't give it a chance to exit normally and do any cleanup that would happen if it exited itself. It may not have been able to flush its file buffers, etc. Does the executable have any way to signal it to exit ? Roger <[EMAIL PROTECTED]> wrote in message

Re: Win32 drive mapping... aka "net use"

2005-03-05 Thread Roger Upole
You could use win32api.GetLogicalDriveStrings to list the drive letters currently in use, and find the next free letter. net use * probably does something like that under the covers. hth Roger "Lucas Machado" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PRO

Re: handling pywintypes.error exceptions

2005-03-05 Thread Roger Upole
You can capture the extra exception data like this. try: ...win32net.NetUseAdd(None, 1, {'remote':r'\\foo\bar','local':'X except pywintypes.error,details: ...err_code=details[0] ... Roger "Lucas Machado" <[EMAIL PROTECTED]> wrote in me

Re: Win32 drive mapping... aka "net use"

2005-03-05 Thread Roger Upole
The split should work fine if you remove the r (raw string) prefix. >>> win32api.GetLogicalDriveStrings().split('\\\x00') ['A:', 'C:', 'D:', 'E:', 'F:', 'G:', 'H:', 'J:', 'K:', 'Y:

Re: win32com and Python2.4: Interpreter crashing!

2005-03-07 Thread Roger Upole
There's a bug in the tokenizer that's triggered by the long lines generated by makepy. See http://sourceforge.net/tracker/index.php?func=detail&aid=1085454&group_id=78018&atid=551954 and www.python.org/sf/1089395 Roger "Tim N. van der Leeuw" <[EMAIL

Re: PyAsm

2005-03-10 Thread Roger Binns
binary size! Instead I would suggest looking at the compile/eval/exec builtins in Python for inspiration. You can give a string to compile and it gives you something you can execute later in varying contexts. Roger -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   >