MS Windows Clipboard

Alex Martelli aleaxit at yahoo.com
Sun Oct 29 17:43:33 EST 2000


"Paul Moore" <gustav at morpheus.demon.co.uk> wrote in message
news:uhlovsojacb0vocahdorgn0hl56bn3eg58 at 4ax.com...
    [snip]
> >interface, and a simple event-loop with timeout...).  You can
> >save it to clipwait.cpp, and build and install clipwait.pyd with
> >the following setup.py:
>
> Wow! Thank you for this... I will look at it in detail later (no time

You're welcome!

> right now), but it seems like exactly the sort of thing I was trying
> to do. I could probably have coded the Windows bits myself, but seeing

Yes, there's nothing very special here in Win32 API terms!

> it in a proper Python format, with a setup.py as well, is very useful.

Now, doing it in Python itself is not a bad idea, actually.  I suspect
one could do it all with calldll, and with win32all it should be far
easier.  Of course, if one's application does not otherwise need any
Win32 access, clipwait.pyd has the advantage of taking up only
20k byte -- this may make one's app smaller when packed, and
hence easier to redistribute, than including all of win32all.  But
calldll.pyd is only 16k...:-)


Alex






More information about the Python-list mailing list