sPOP Suite Code
Status: Alpha
Brought to you by:
clintfish
--- a +++ b/commands.py @@ -0,0 +1,34 @@ +#!/usr/bin/python + +from Tkinter import * +import sys +import os + +def cut_text(self): + try: + self.clipboard_clear() + self.clipboard_append(self.get("sel.first","sel.last")) + self.delete("sel.first","sel.last") + except: + pass + +def copy_text(self): + try: + self.clipboard_clear() + self.clipboard_append(self.get("sel.first","sel.last")) + except: + pass + +def paste_text(self): + try: + self.insert("insert",self.selection_get(selection="CLIPBOARD")) + except: + pass + +def select_all(self): + try: + self.tag_add("sel","1.0","end") + except: + pass + +