Skip to content

Commit cf8f31f

Browse files
committed
Merge pull request #275 from ODM2/save_wizard
Table Selection Should Initiate Radio Button on Method Selection for Save
2 parents ba76fcd + c834d39 commit cf8f31f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
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: 6 additions & 2 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')
@@ -62,7 +63,7 @@ def _init_ctrls(self, prnt):
6263
self.lstMethods.SetColumnWidth(0, 200)
6364
self.lstMethods.SetColumnWidth(1, 153)
6465
self.lstMethods.SetColumnWidth(2,0)
65-
self.lstMethods.Enable(False)
66+
# self.lstMethods.Enable(False)
6667

6768

6869

@@ -72,8 +73,11 @@ 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):
76-
self.lstMethods.Enable(False)
80+
# self.lstMethods.Enable(False)
7781
self.txtMethodDescrip.Enable(False)
7882

7983
event.Skip()

0 commit comments

Comments
 (0)