Re: [python-win32] Extract icon from exe files

2009-04-21 Thread Mark Hammond
EISEN Nicolas wrote: Hi, After search, I found many function to get Handler from exe (or dll) file icons . But I don’t understand how use the Handler … For example: />>> Import win32gui >> i= win32gui.ExtractIcon(0,'e:\\dxdiag.exe',0) >> icon = win32gui.LoadIcon ( i , 0)/ Or with Extract

[python-win32] [Fwd: Would you support adding UNC support to os.path on Windows?]

2009-04-21 Thread Mark Hammond
From python-list, and I thought it might be of interest here... Cheers, Mark --- Begin Message --- I've written a patch for Python 3.1 that changes os.path so it handles UNC paths on Windows. You can read about it at the Python bug tracker: http://bugs.python.org/issue5799 I'd like to

Re: [python-win32] ANN: PyGUI 2.0.4

2009-04-21 Thread Greg Ewing
Christian K. wrote: I'm afraid, that error is stil there: > File "c:\pythonxy\python\Lib\site-packages\GUI\Win32\ScrollableViews.py", line 31, in __init__ GScrollableView.__init__(self, _win = win) win32ui.error: The object has been destroyed. That's a bit of a problem, since it works

Re: [python-win32] AddMembershipRule(SMS_CollectionRuleDirect): Generic failure

2009-04-21 Thread Tim Golden
John Randolph wrote: On Sat, Apr 18, 2009 at 8:09 PM, Tim Golden wrote: John Randolph wrote: Actually I had previously placed a delay between the new_rule creation and calling AddMembershipRule for another reason -- to make a clear break in the timestamps on the server side wmi logs. Unfortu

Re: [python-win32] ANN: PyGUI 2.0.4

2009-04-21 Thread Christian K .
Hi Greg, Greg Ewing canterbury.ac.nz> writes: > on Windows, although I can't be sure it will fix all > the Windows problems people are having, because I > haven't been able to reproduce some of them. > > What is PyGUI? > -- > > PyGUI is a cross-platform GUI toolkit designed to be

[python-win32] problem getting printer status in Windows

2009-04-21 Thread Roger Upole
Just to clarify, the code is asking for job status rather than printer status. According to the docs: http://msdn.microsoft.com/en-us/library/dd145019(VS.85).aspx the status can be returned either as a string in the pStatus member, or as an int in Status. You'll probably need to change the JOB_

[python-win32] Python winappdbg module v1.0 is out!

2009-04-21 Thread Mario Alejandro Vilas Jerez
What is winappdbg? == The winappdbg python module allows developers to quickly code instrumentation scripts in Python under a Windows environment. It uses ctypes to wrap many Win32 API calls related to debugging, and provides an object-oriented abstraction layer to manipulate thre

Re: [python-win32] AddMembershipRule(SMS_CollectionRuleDirect): Generic failure

2009-04-21 Thread John Randolph
On Sat, Apr 18, 2009 at 8:09 PM, Tim Golden wrote: > John Randolph wrote: > >> Actually I had previously placed a delay between the new_rule creation >> and calling AddMembershipRule for another reason -- to make a clear >> break in the timestamps on the server side wmi logs.  Unfortunately >> the

[python-win32] COM and retrieving records/structures

2009-04-21 Thread Simon Carter
Hullo! I'm having a problem interfacing with a proprietary COM library on Windows, and I was hoping someone could help. I'm no COM guru, so apologies in advance if my terminology gets a little muddled... I'm accessing the COM library via gencache.EnsureModule. It was all working as expected until

[python-win32] ANN: PyGUI 2.0.4

2009-04-21 Thread Greg Ewing
PyGUI 2.0.4 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ Fixes a few more bugs and hopefully improves things on Windows, although I can't be sure it will fix all the Windows problems people are having, because I haven't been able to reproduce some of them. What is Py

Re: [python-win32] problem getting printer status in Windows

2009-04-21 Thread Tim Golden
Alec Bennett wrote: I'm having trouble getting the printer status in Windows. Ideally I'd like to get the info contained in the "Status" column when you open a printer from the Windows control panel --> printers. Generally, altho' not always, questions like this have an answer which starts wit