mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Patch #1063914: Add clipboard_get.
This commit is contained in:
		
							parent
							
								
									45bb98e8b9
								
							
						
					
					
						commit
						0db2a989f3
					
				
					 2 changed files with 19 additions and 0 deletions
				
			
		|  | @ -483,7 +483,24 @@ def after_cancel(self, id): | ||||||
|     def bell(self, displayof=0): |     def bell(self, displayof=0): | ||||||
|         """Ring a display's bell.""" |         """Ring a display's bell.""" | ||||||
|         self.tk.call(('bell',) + self._displayof(displayof)) |         self.tk.call(('bell',) + self._displayof(displayof)) | ||||||
|  |          | ||||||
|     # Clipboard handling: |     # 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): |     def clipboard_clear(self, **kw): | ||||||
|         """Clear the data in the Tk clipboard. |         """Clear the data in the Tk clipboard. | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -72,6 +72,8 @@ Extension Modules | ||||||
| Library | Library | ||||||
| ------- | ------- | ||||||
| 
 | 
 | ||||||
|  | - Patch #1063914: Add Tkinter.Misc.clipboard_get(). | ||||||
|  | 
 | ||||||
| - Patch #1191700: Adjust column alignment in bdb breakpoint lists. | - Patch #1191700: Adjust column alignment in bdb breakpoint lists. | ||||||
| 
 | 
 | ||||||
| - SimpleXMLRPCServer relied on the fcntl module, which is unavailable on | - SimpleXMLRPCServer relied on the fcntl module, which is unavailable on | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Martin v. Löwis
						Martin v. Löwis