Logged In: YES user_id=482545 Thanks Martin I wasn't sure... I wanted to point out that this method raises a TclError if it is called when the clipboard is empty... not sure if that is pythonic or not... perhaps I could catch it and return an empty string? Perhaps I should bring this up on the Tkinter mail list...
Logged In: YES user_id=2772 The existing selection_get method also raises TclError, instead of returning some sentinel value. clipboard_get should do the same. >>> t.selection_get(type="INTEGER") TclError: PRIMARY selection doesn't exist or form "INTEGER" not defined The patch looks obviously correct. Under light testing, it worked properly (Python 2.3.5 / Linux), Recommend "apply".