Browse Source

patch for windows

283
ThomasV 14 years ago
parent
commit
f2f01a0b9d
  1. 9
      client/gui.py

9
client/gui.py

@ -718,9 +718,18 @@ class BitcoinGUI:
button = gtk.Button("Copy to clipboard")
def copy2clipboard(w, treeview, liststore):
import platform
path, col = treeview.get_cursor()
if path:
address = liststore.get_value( liststore.get_iter(path), 0)
if platform.system() == 'Windows':
from Tkinter import Tk
r = Tk()
r.withdraw()
r.clipboard_clear()
r.clipboard_append( address )
r.destroy()
else:
c = gtk.clipboard_get()
c.set_text( address )
button.connect("clicked", copy2clipboard, treeview, liststore)

Loading…
Cancel
Save