19 lines
433 B
Python
19 lines
433 B
Python
import prof
|
|
import sys
|
|
import Tkinter as tk
|
|
|
|
def _cmd_paste():
|
|
root = tk.Tk(baseName="")
|
|
root.withdraw()
|
|
result = root.clipboard_get()
|
|
prof.cons_show(u'\u000A' + result)
|
|
|
|
def prof_init(version, status):
|
|
synopsis = [
|
|
"/paste"
|
|
]
|
|
description = "Paste contents of clipboard."
|
|
args = []
|
|
examples = []
|
|
prof.register_command("/paste", 0, 0, synopsis, description, args, examples, _cmd_paste)
|