Re: [python-win32] How to launch an executable in elevated mode on Vista with UAC on?

2009-03-02 Thread Mark Hammond
On 3/03/2009 12:10 PM, Patrick Li wrote: Hello, I have a python program that needs to launch an executable (it is an installer executable) that requires admin privileges. This works fine on XP and Vista machines where UAC is turned off. On Vista machines with UAC on, however, it doesn't appear

[python-win32] How to launch an executable in elevated mode on Vista with UAC on?

2009-03-02 Thread Patrick Li
Hello, I have a python program that needs to launch an executable (it is an installer executable) that requires admin privileges. This works fine on XP and Vista machines where UAC is turned off. On Vista machines with UAC on, however, it doesn't appear to allow the program to launch the executab

Re: [python-win32] OnCtlColor not working?

2009-03-02 Thread Greg Ewing
Vernon Cole wrote: So, Greg, can we anticipate a python_gui flavor for Windows in native mode? Yes, it looks like there's a reasonable chance of that happening fairly soon. There are actually two possible ways it could go. I have a partial implementation contributed by one of my users based o

Re: [python-win32] OnCtlColor not working?

2009-03-02 Thread Greg Ewing
Mike Driscoll wrote: I'm probably being naive, but why don't you just use one of Python excellent GUI toolkits? I'm implementing my own cross-platform toolkit, because I don't like any of the existing ones. See http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ -- Greg _

Re: [python-win32] OnCtlColor not working?

2009-03-02 Thread Vernon Cole
So, Greg, can we anticipate a python_gui flavor for Windows in native mode? -- Vernon Cole On Mon, Mar 2, 2009 at 7:46 AM, Mike Driscoll wrote: > King Simon-NFHD78 wrote: >>> >>> -Original Message- >>> From: python-win32-bounces+simon.king=motorola@python.org >>> [mailto:python-win32-

Re: [python-win32] OnCtlColor not working?

2009-03-02 Thread King Simon-NFHD78
> -Original Message- > From: python-win32-bounces+simon.king=motorola@python.org > [mailto:python-win32-bounces+simon.king=motorola@python.or > g] On Behalf Of Mike Driscoll > Sent: 02 March 2009 14:18 > To: Python-Win32 List > Subject: Re: [python-win32] OnCtlColor not working? >

[python-win32] Eject a Removable USB drive

2009-03-02 Thread Rickey, Kyle W
Hello everyone, I would like to be able to eject a usb drive based on drive letter. I've done a bit of googling and came across the CM_Request_Device_Eject function on MSDN (http://msdn.microsoft.com/en-us/library/ms790831.aspx) However, I am not quite sure how to supply the necessary parameter t

Re: [python-win32] OnCtlColor not working?

2009-03-02 Thread Mike Driscoll
King Simon-NFHD78 wrote: -Original Message- From: python-win32-bounces+simon.king=motorola@python.org [mailto:python-win32-bounces+simon.king=motorola@python.or g] On Behalf Of Mike Driscoll Sent: 02 March 2009 14:18 To: Python-Win32 List Subject: Re: [python-win32] OnCtlColor n

Re: [python-win32] OnCtlColor not working?

2009-03-02 Thread Mike Driscoll
Greg Ewing wrote: Has anyone successfully used the PyCWnd.OnCtlColor virtual function to change the appearance of a control? The program below tries to use it to set the colour of the text in a PyCButton. My OnCtlColor method gets called, but it doesn't have any effect on the appearance of the

Re: [python-win32] OnCtlColor not working?

2009-03-02 Thread Tim Golden
Greg Ewing wrote: Well, it *almost* works now... it's okay for all the button styles except BS_PUSHBUTTON. My OnCtlColor is still getting called, but the pushbutton seems to ignore the results. All the other button styles are okay. Am I still doing something wrong, or is this a known limitation