Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21310 > unrolled thread

Re: Get tkinter text to the clipboard

Started byPeter Otten <__peter__@web.de>
First post2012-03-07 09:39 +0100
Last post2012-03-07 09:39 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Get tkinter text to the clipboard Peter Otten <__peter__@web.de> - 2012-03-07 09:39 +0100

#21310 — Re: Get tkinter text to the clipboard

FromPeter Otten <__peter__@web.de>
Date2012-03-07 09:39 +0100
SubjectRe: Get tkinter text to the clipboard
Message-ID<mailman.458.1331109581.3037.python-list@python.org>
bugzilla-mail-box@yandex.ru wrote:

> How can I get something from tkinter gui to another program ?
> tkinter on python 3.2 on kde4

How about 

import tkinter
root = tkinter.Tk()

root.clipboard_clear()
root.clipboard_append("whatever")

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web