wxTheClipboard problem, IDLE vs PythonWin
cjm at ava.com.au
Thu Oct 7 01:52:50 CEST 2004
I know its a while since this was posted, and likely has been solve. But I just came up against the same problem and couldn't find an answer on Google, so here is my take on it all.
It appears that the wx.TheClipboard only works effectively inside a wx.App main loop (or at least that got rid of my problems with it). Doesn't mean you have to show a gui interface.
Hope this helps,
> I have a need to write data to the Windows clipboard from a Python script.
> I found a nice, simple solution @
> http://wiki.wxpython.org/index.cgi/ClipBoard. The problem is, I can only
> get it to work from within the PythonWin and SPE IDE's. I get errors if I
> try to run the exact same code from the command line or via IDLE's
> interactive shell. I can't figure it out. Any ideas? Possibly something
> missing from my PYTHONPATH environment variable?
> Any help is appreciated. Thanks,
More information about the Python-list