[Python-checkins] r45461 - in python/trunk: Lib/lib-tk/Tkinter.py Misc/NEWS
martin.v.loewis
python-checkins at python.org
Sun Apr 16 22:55:39 CEST 2006
Author: martin.v.loewis
Date: Sun Apr 16 22:55:38 2006
New Revision: 45461
Modified:
python/trunk/Lib/lib-tk/Tkinter.py
python/trunk/Misc/NEWS
Log:
Patch #1063914: Add clipboard_get.
Modified: python/trunk/Lib/lib-tk/Tkinter.py
==============================================================================
--- python/trunk/Lib/lib-tk/Tkinter.py (original)
+++ python/trunk/Lib/lib-tk/Tkinter.py Sun Apr 16 22:55:38 2006
@@ -483,7 +483,24 @@
def bell(self, displayof=0):
"""Ring a display's bell."""
self.tk.call(('bell',) + self._displayof(displayof))
+
# Clipboard handling:
+ def clipboard_get(self, **kw):
+ """Retrieve data from the clipboard on window's display.
+
+ The window keyword defaults to the root window of the Tkinter
+ application.
+
+ The type keyword specifies the form in which the data is
+ to be returned and should be an atom name such as STRING
+ or FILE_NAME. Type defaults to STRING.
+
+ This command is equivalent to:
+
+ selection_get(CLIPBOARD)
+ """
+ return self.tk.call(('clipboard', 'get') + self._options(kw))
+
def clipboard_clear(self, **kw):
"""Clear the data in the Tk clipboard.
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Sun Apr 16 22:55:38 2006
@@ -72,6 +72,8 @@
Library
-------
+- Patch #1063914: Add Tkinter.Misc.clipboard_get().
+
- Patch #1191700: Adjust column alignment in bdb breakpoint lists.
- SimpleXMLRPCServer relied on the fcntl module, which is unavailable on
More information about the Python-checkins
mailing list