From 5596482b417fd6cc93998aab56a270ac5e1967f5 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 13 Dec 2011 07:33:23 +0100 Subject: [PATCH] connect mouse event to tx details --- client/gui.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/gui.py b/client/gui.py index 4239374b8..088e452a2 100644 --- 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)