Re: [python-win32] COM: Minimal example of a custom server working with DispatchWithEvents()

2021-08-03 Thread William Belanger
> if __name__ == "__main__": > if "--register" in sys.argv[1:] or "--unregister" in sys.argv[1:]: > import win32com.server.register > win32com.server.register.UseCommandLine(ServerAdapter) > else: > server_thread = threading.Thre

Re: [python-win32] COM: Minimal example of a custom server working with DispatchWithEvents()

2021-07-31 Thread William Belanger
hread(target=init_server) > server_thread.start()app = Main() > > The Ping() method would usually be called from the third-party app, but here it is done locally for the sake of demonstration. >From the server adapter, how can I query values or call methods of another clas

Re: [python-win32] COM: Minimal example of a custom server working with DispatchWithEvents()

2021-07-30 Thread William Belanger
le available from them. Is it necessary though? I would rather do everything dynamically, such as setting the GUID, just like I did for the DBus interface. DBus interface: https://gitlab.com/-/snippets/2151173 COM interface: https://gitlab.com/-/snippets/2154411 Thanks, Will Le mer. 28 juil.

Re: [python-win32] COM: Minimal example of a custom server working with DispatchWithEvents()

2021-07-28 Thread William Belanger
arate "sink" class (ImplementationAntidote) that would behave more like a generic python object. Is there any other way to achieve this? It is quite a trivial feature so I assume it is possible to do so? Best, Will Le mer. 28 juil. 2021 à 04:25, Mark Hammond a écrit : > > On 28

[python-win32] COM: Minimal example of a custom server working with DispatchWithEvents()

2021-07-27 Thread William Belanger
Hi everyone, I'm trying to make a cross-platform Python interface for a third-party API (Druide Antidote). The D-Bus part is done and working ( https://gitlab.com/-/snippets/2151173), it consist of a server adapter (AdaptateurAntidote), which relay the events to an handler class (ImplementationAn

[python-win32] Getting Wireless Signal Strength / Windows XP

2008-02-14 Thread Prof. William Battersea
Hello, I posted the following to Comp Lang Python list, but didn't receive any replies: I'm looking for a way to get wireless signal strength on Windows XP with Python. I see there's a library for Linux, but I can't find anything for windows. However, I see that using WMI I can access it in theor

[python-win32] How Can I exec() a statement?

2005-04-06 Thread * William
Hello all.   Thanks for the tips and solutions posted to the list so far.  This is a general python question, not windows specific.  It is my turn to ask. (Perhaps the notion below will suggest some development to one of you. Who knows?)   I want to execute a statement indirectly in Python.