commit 5596482b417fd6cc93998aab56a270ac5e1967f5
parent 1c05549e869c81f6e4b577079faf5b86c3128724
Author: ThomasV <thomasv@gitorious>
Date: Tue, 13 Dec 2011 07:33:23 +0100
connect mouse event to tx details
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/client/gui.py b/client/gui.py
@@ -680,6 +680,12 @@ class BitcoinGUI:
self.show_message( msg )
+ def treeview_button_press(self, treeview, event):
+ if event.type == gtk.gdk._2BUTTON_PRESS:
+ c = treeview.get_cursor()[0]
+ tx_details = self.history_list.get_value( self.history_list.get_iter(c), 8)
+ self.show_message(tx_details)
+
def treeview_key_press(self, treeview, event):
c = treeview.get_cursor()[0]
if event.keyval == gtk.keysyms.Up:
@@ -699,6 +705,7 @@ class BitcoinGUI:
treeview.set_tooltip_column(7)
treeview.show()
treeview.connect('key-press-event', self.treeview_key_press)
+ treeview.connect('button-press-event', self.treeview_button_press)
tvcolumn = gtk.TreeViewColumn('')
treeview.append_column(tvcolumn)