[python-win32] Starting a GUI app from AddIn server

2006-03-21 Thread Johannes Brunen
Hi, I'm facing the following problem: I have written an AddIn server which is called from a GUI application. After some action in the GUI app the function DoSomething of class CmdEvtHandlerStartApp is called. This works pretty fine. class AddInBase: """ Base class for CADdy++ AddIns.

[python-win32] Re: win32process open-terminate loop cripples OS

2006-03-21 Thread Roger Upole
David S wrote: > Hello, > > I decided to attempt to use python's win32 extensions as a method to > monitor and control process for my python application. It's working > well in the short term, but, as this app is intended to be very > low-maintenance, and probably high-uptimes without restarting,

[python-win32] Re: how to know the native file path of computer A

2006-03-21 Thread Roger Upole
Michael Li wrote: > Hi, > I got bunch of reply, thank you very much. > But they are not what i want. > Let me make it more clear, my code looks like: > > nRetCode = os.access(szFolder, os.F_OK) > if nRetCode == 1: > nRetCode = os.chdir(szFolder) > szNormPath = os.path.normp

Re: [python-win32] how to know the native file path of computer A on computer B

2006-03-21 Thread Michael Li
I forgot to mention that: W: on computer B is a mapped network drive, which is C:\shared on computer A. So W:\database\test.DB on computer B and C:\shared\database\test.DB on computer A are pointed to the same file. From computer B, I only know the file path is W:\database, when the program actual

Re: [python-win32] how to know the native file path of computer A on computer B

2006-03-21 Thread Michael Li
Hi, I got bunch of reply, thank you very much. But they are not what i want. Let me make it more clear, my code looks like: nRetCode = os.access(szFolder, os.F_OK) if nRetCode == 1: nRetCode = os.chdir(szFolder) szNormPath = os.path.normpath(szCommand) szBatchF

Re: [python-win32] how to know the native file path of computer A on computer B

2006-03-21 Thread Tom_RobbinsMilne
Michael, If you just need to deal with the path to the executable, perhaps os.path.normpath() is what you're looking for. Regards, Tom Michael Li <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 03/21/2006 12:33 PM To python-win32@python.org cc Subject [python-win32] how to kno

[python-win32] wxpython wxGrid

2006-03-21 Thread Phill Atwood
wxWidgets Question regarding grids. There seems to be a display problem. If you scroll horizontally or vertically eventually you get to the end of the row or col. At this point you seem to always be able to scroll a little bit further revealing just some empty space. All the examples in th

[python-win32] how to know the native file path of computer A on computer B

2006-03-21 Thread Michael Li
Hi, all I want to run a command remotely, but I have to know the native file path on the remote computer from client computer. Here is the details: -- --- || | | | computer A