[python-win32] create user message for wxPython

2005-10-20 Thread James Hu
Hi, There are 2 wxPython application, A and B and need to exchange msg. Sending WM_CLOSE, wxEVT_MOUSEWHEEL to B is OK, and sending user message like 1225 from A to B is also OK. But B didn't catch this message, note, B is running before A sends msg and can receive "WM_CLOSE". Do I have to make

Re: [python-win32] detect file modification event

2005-10-20 Thread Jim McCoy
The only warning I would add here is that you should be aware of the fact that your watcher thread will block waiting for a change to occur in the directory; you cannot cancel the blocked ReadDirectoryChangesW call using the standard pywin32 bindings. We have put together some patches for ReadDirec

Re: [python-win32] String weirdness on python 2.4 / windows

2005-10-20 Thread Tim Roberts
On Wed, 19 Oct 2005 09:51:32 +1000, Kinsley Turner <[EMAIL PROTECTED]> wrote: >Hey-ho, > >I'm having a problem with some binary data read into a string. > >Basically I open an icon file "rb", read() it into a string, then >spit it back down on a web request for /favicon.ico. > >It works fine unde

[python-win32] Re: Access to the DHCP Client API

2005-10-20 Thread Roger Upole
"Gaspard, Bradley S" wrote: > Is it possible to access Windows DHCP Client API using Python's win32 > extensions? > I couldn't find any information on the web. None of the Dhcp functions are wrapped, but depending on what you're trying to accomplish, you might be able use use WMI. The Win32_Netw

Re: [python-win32] detect file modification event

2005-10-20 Thread Jim Vickroy
Fantastic! That's it exactly. I was hoping to avoid polling and this shows me how. Thanks much. -- jv Tim Golden wrote: >[Jim Vickroy] > > > >>Sorry if this has been previously answered, but my search failed to >> >> >detect it. > > >>Could someone refer to information on how to det

Re: [python-win32] detect file modification event

2005-10-20 Thread Tim Golden
[Jim Vickroy] > Sorry if this has been previously answered, but my search failed to detect it. > Could someone refer to information on how to detect file modification (e.g., update) events in MS Windows? Is this the sort of thing you were after? http://timgolden.me.uk/python/win32_how_do_i/watch

[python-win32] detect file modification event

2005-10-20 Thread Jim Vickroy
Sorry if this has been previously answered, but my search failed to detect it. Could someone refer to information on how to detect file modification (e.g., update) events in MS Windows? Thanks, -- jv ___ Python-win32 mailing list Python-win32@python.

[python-win32] Access to the DHCP Client API

2005-10-20 Thread Gaspard, Bradley S
Is it possible to access Windows DHCP Client API using Python’s win32 extensions? I couldn’t find any information on the web. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] user currently connected

2005-10-20 Thread Tim Golden
[le dahut] > How can I get the name of a user currently connected on a windows workstation ? I mean a sort of "whoami". import getpass getpass.getuser () Or import win32api win32api.GetUserName () Or import os os.environ['USERNAME'] TJG

[python-win32] user currently connected

2005-10-20 Thread le dahut
Hi, How can I get the name of a user currently connected on a windows workstation ? I mean a sort of "whoami". Thanks ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] String weirdness on python 2.4 / windows

2005-10-20 Thread Steve Holden
Kinsley Turner wrote: > >>>Similarly I have a string with the IBM-extended-ASCII degrees symbol >>>(ascii 0xb0) >>>that is read in from a network-connected field device. Somehow this > > ends > >>>up with >>>an extended 'A' (with a single dot over it.) prepended before it. > > >>This question