From: <sig...@us...> - 2011-05-10 00:05:30
|
Revision: 797 http://pytrainer.svn.sourceforge.net/pytrainer/?rev=797&view=rev Author: siggipals Date: 2011-05-10 00:05:19 +0000 (Tue, 10 May 2011) Log Message: ----------- Double-click in list view opens record edit - Take 2 Modified Paths: -------------- pytrainer/trunk/glade/pytrainer.glade pytrainer/trunk/pytrainer/gui/windowmain.py Modified: pytrainer/trunk/glade/pytrainer.glade =================================================================== --- pytrainer/trunk/glade/pytrainer.glade 2011-05-10 00:01:31 UTC (rev 796) +++ pytrainer/trunk/glade/pytrainer.glade 2011-05-10 00:05:19 UTC (rev 797) @@ -6383,6 +6383,7 @@ <property name="visible">True</property> <property name="can_focus">True</property> <signal name="button_press_event" handler="on_allRecordTreeView_button_press"/> + <signal name="row_activated" handler="on_recordTree_clicked"/> </widget> </child> </widget> Modified: pytrainer/trunk/pytrainer/gui/windowmain.py =================================================================== --- pytrainer/trunk/pytrainer/gui/windowmain.py 2011-05-10 00:01:31 UTC (rev 796) +++ pytrainer/trunk/pytrainer/gui/windowmain.py 2011-05-10 00:05:19 UTC (rev 797) @@ -2110,7 +2110,7 @@ self.actualize_yearview() def on_recordTree_clicked(self,widget,num,num2): - selected,iter = self.recordTreeView.get_selection().get_selected() + selected,iter = widget.get_selection().get_selected() self.parent.editRecord(selected.get_value(iter,0), self.selected_view) ### athleteview events ### This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |