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 with

[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

[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] 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

Re: [python-win32] ANN: PyGUI 2.0.4

2009-04-21 Thread Christian K .
Hi Greg, Greg Ewing greg.ewing at 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

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

[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 ---BeginMessage--- 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] 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 ExtractIconEx