Re: [python-win32] Creating an MSI of pywin32

2008-04-22 Thread Brad Johnson
Brad Johnson ballardtech.com> writes: Note, I can fix this by hard coding a valid version in \distutils\command\bdist_msi.py by changing sversion = "%d.%d.%d" % StrictVersion(version).version to sversion = "210" (where 210 is the build number) But, obviously this just side-steps the problem.

Re: [python-win32] holiday

2008-04-22 Thread Brad Johnson
Mark Hammond skippinet.com.au> writes: > > Hi all, > FYI, I'm off on a 2 week vacation to China (wh!) > Hope it is an enjoyable break for you, you deserve it :-) ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mai

[python-win32] Creating an MSI of pywin32

2008-04-22 Thread Brad Johnson
Hello everyone, I am attempting to create an MSI of pywin32 so I can have it silently install with another application. I am running into this error and traceback when executing "python setup.py bdist_msi" running install_egg_info Writing build\bdist.win32\msi\Lib\site-packages\pywin32-210-py2.5

Re: [python-win32] Finding the selected file in Windows Explorer

2008-04-22 Thread Larry Bates
Daniel Gonçalves wrote: Larry Bates wrote: Daniel Gonçalves wrote: Hi! I need to find the selected file(s) in a Windows Explorer window from another program (I'd look at the window that last had focus). Daniel, What do you mean by "find the selected files". Give us a little more detail

Re: [python-win32] Size of directory

2008-04-22 Thread Dahlstrom, Roger
You have to walk the directory tree and sum each file's size. Windows does this too - try your right-click properties on a large directory and see how long it takes. That's also what du does. There are, however, some recipes that should make this fairly simple for you - try this: http://asp

Re: [python-win32] Size of directory

2008-04-22 Thread Larry Bates
Tony Cappellini wrote: When I right click on a directory with windows Explorer, a window is displayed showing Size: Size On Disk: Contains: Created: Attributes: (with the appropriate values for each entry) How do I get the same information via Python ? I've looked at os.stat but os.stat(r

[python-win32] Size of directory

2008-04-22 Thread Tony Cappellini
When I right click on a directory with windows Explorer, a window is displayed showing Size: Size On Disk: Contains: Created: Attributes: (with the appropriate values for each entry) How do I get the same information via Python ? I've looked at os.stat but os.stat(r'C:\temp')[os.path.stat.ST_S

Re: [python-win32] Drag and Drop issues

2008-04-22 Thread Mike Driscoll
Alex Denham wrote: Hi, I'm trying to implement a drag and drop feature in my Tkinter based gui. I want to be able to drag a file from windows (explorer/desktop etc) into my program. Then i need my program to get the filepath for the file that was dropped. I've tried to search all over the in

Re: [python-win32] Finding the selected file in Windows Explorer

2008-04-22 Thread Tim Roberts
Daniel Gonçalves wrote: Hi! I need to find the selected file(s) in a Windows Explorer window from another program (I'd look at the window that last had focus). I found something in the following page that should do the trick: http://blogs.msdn.com/oldnewthing/archive/2004/07/20/188696.aspx How

Re: [python-win32] Finding the selected file in Windows Explorer

2008-04-22 Thread Tim Roberts
Michel Claveau wrote: Hi! Since Vista, Windows-Explorer and Internet-Explorer are separate. Previously it was possible to drive Windows-Explorer via COM. Vista made that impossible. They have ALWAYS been separate. No shared code. The only thing they had in common was one word in the name.

Re: [python-win32] Finding the selected file in Windows Explorer

2008-04-22 Thread Daniel Gonçalves
Larry Bates wrote: Daniel Gonçalves wrote: Hi! I need to find the selected file(s) in a Windows Explorer window from another program (I'd look at the window that last had focus). Daniel, What do you mean by "find the selected files". Give us a little more detail about your use case and

[python-win32] Drag and Drop issues

2008-04-22 Thread Alex Denham
Hi, I'm trying to implement a drag and drop feature in my Tkinter based gui. I want to be able to drag a file from windows (explorer/desktop etc) into my program. Then i need my program to get the filepath for the file that was dropped. I've tried to search all over the internet, in books and i

Re: [python-win32] Finding the selected file in Windows Explorer

2008-04-22 Thread Larry Bates
Daniel Gonçalves wrote: Hi! I need to find the selected file(s) in a Windows Explorer window from another program (I'd look at the window that last had focus). I found something in the following page that should do the trick: http://blogs.msdn.com/oldnewthing/archive/2004/07/20/188696.aspx How

Re: [python-win32] Finding the selected file in Windows Explorer

2008-04-22 Thread Michel Claveau
Hi! Since Vista, Windows-Explorer and Internet-Explorer are separate. Previously it was possible to drive Windows-Explorer via COM. Vista made that impossible. IMO, you must seek another way that COM. Sorry. Michel Claveau ___ python-win32 mailing

Re: [python-win32] Finding the selected file in Windows Explorer

2008-04-22 Thread Rickey, Kyle W
>From what I understand, you'd probably need to find the listctrl in the >explorer window by using EnumChildWindows. From there there's probably a way >to get the selected items. I'm no expert, but that might get you started in the right direction until someone can provide a better response. -

Re: [python-win32] os.startfile mysteriously failing

2008-04-22 Thread King Simon-NFHD78
Thomas Heller wrote: > > Some remarks that may or may not be useful: > > AFAIK, a single threaded COM apartment needs to run a message loop, > according to the COM rules. If the OP has a gui-application, and > calls os.startfile from the main thread, then this should be > no problem. > > If he

[python-win32] Finding the selected file in Windows Explorer

2008-04-22 Thread Daniel Gonçalves
Hi! I need to find the selected file(s) in a Windows Explorer window from another program (I'd look at the window that last had focus). I found something in the following page that should do the trick: http://blogs.msdn.com/oldnewthing/archive/2004/07/20/188696.aspx However, it is not Python an