@@ -54,6 +54,7 @@ def _init_ctrls(self, prnt):
54
54
self .lstMethods = wx .ListCtrl (id = wxID_PNLMETHODSLISTCTRL1 ,
55
55
name = 'lstMethods' , parent = self , pos = wx .Point (16 , 48 ),
56
56
size = wx .Size (392 , 152 ), style = wx .LC_REPORT | wx .LC_SINGLE_SEL )
57
+ self .lstMethods .Bind (wx .EVT_SET_FOCUS , self .OnLstMethodSetFocus )
57
58
58
59
59
60
self .lstMethods .InsertColumn (0 , 'Description' )
@@ -62,7 +63,7 @@ def _init_ctrls(self, prnt):
62
63
self .lstMethods .SetColumnWidth (0 , 200 )
63
64
self .lstMethods .SetColumnWidth (1 , 153 )
64
65
self .lstMethods .SetColumnWidth (2 ,0 )
65
- self .lstMethods .Enable (False )
66
+ # self.lstMethods.Enable(False)
66
67
67
68
68
69
@@ -72,8 +73,11 @@ def __init__(self, parent, id, pos, size, style, name, sm, method):
72
73
self .prev_val = method
73
74
self ._init_ctrls (parent )
74
75
76
+ def OnLstMethodSetFocus (self , event ):
77
+ self .rbSelect .SetValue (True )
78
+
75
79
def OnRbGenerateRadiobutton (self , event ):
76
- self .lstMethods .Enable (False )
80
+ # self.lstMethods.Enable(False)
77
81
self .txtMethodDescrip .Enable (False )
78
82
79
83
event .Skip ()
0 commit comments