Skip to content

Commit 9e8522a

Browse files
author
stephanie
committed
fix issue #275
1 parent d0025bc commit 9e8522a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

odmtools/gui/mnuRibbon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from odmtools.controller.frmLinearDrift import frmLinearDrift
1616
from odmtools.controller.frmAbout import frmAbout
1717
import wizSave
18-
from odmtools.common import *
18+
from odmtools.common.icons import *
1919
import pandas as pd
2020

2121

odmtools/gui/pageMethod.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def _init_ctrls(self, prnt):
5454
self.lstMethods = wx.ListCtrl(id=wxID_PNLMETHODSLISTCTRL1,
5555
name='lstMethods', parent=self, pos=wx.Point(16, 48),
5656
size=wx.Size(392, 152), style=wx.LC_REPORT|wx.LC_SINGLE_SEL)
57+
self.lstMethods.Bind(wx.EVT_SET_FOCUS, self.OnLstMethodSetFocus)
5758

5859

5960
self.lstMethods.InsertColumn(0, 'Description')
@@ -72,6 +73,9 @@ def __init__(self, parent, id, pos, size, style, name, sm, method):
7273
self.prev_val = method
7374
self._init_ctrls(parent)
7475

76+
def OnLstMethodSetFocus(self, event):
77+
self.rbSelect.SetValue(True)
78+
7579
def OnRbGenerateRadiobutton(self, event):
7680
self.lstMethods.Enable(False)
7781
self.txtMethodDescrip.Enable(False)

0 commit comments

Comments
 (0)