作者Assing (麵的小丑)
看板Python
標題[問題] 關於實現 "文字複製" 的問題(ctrl+c)
時間Thu Oct 20 13:14:09 2016
哈囉,各位鄉大。
已爬過文,小弟最近在研究Tkinter的部分,遇到一些瓶頸。
想請問一下 Python 中的 Tkinter部分,
使用 Tkinter的GUI 介面之後,
怎麼使用 buttom 來複製 GUI 裡面的參數(像是windows ctrl + C 的功能)。
比如在GUI介面,已知有一個參數value1,
如何 使用 buttom,按下去之後,可 複製 value1 的值。
然後貼上到我的Word 上,
不知道有沒有辦法實現。
謝謝各位鄉大回覆。
感謝~
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 110.30.81.122
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1476940452.A.FD8.html
→ Typebrook: tkinter.Tk().clipboard_append(str_of_value) 10/20 14:24
→ Assing: 謝謝T大大,我在試看看,感謝~ 10/21 00:25
→ s860134: 如果是 windows UI 可以使用 win32clipboard 10/21 00:28