@@ -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