By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,277 Members | 1,505 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,277 IT Pros & Developers. It's quick & easy.

Weird clipboard behavior?

P: n/a
Hi, group,
A weird clipboard behavior for your help:

from Tkinter import *
import tkMessageBox

root.clipboard_append('python rules!')
tkMessageBox.showinfo("Done","Text pasted!")

1. When messagebox shows up, you click "OK" to exit, then you can not
get "python rules!" anymore. Clipboard is empty.
2.However, if you paste "python rules!" from the clipboard (ie,ctrl-v
in textpad) before you click "OK" to exit. "python rules!" is still on
the clipboard after you exit this small app.
3. The above test is on python2.3/win2k. I also tested it on linux
(python2.3/rh7.1). Content was always lost after you exit, on matter
if you paste it or not before exit.
Q: How to keep content in clipboard after exit?

Thanks in advance!

Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.