box.Add(btn, 0, wxALIGN_CENTER|wxALL, 15)
EVT_BUTTON(self, k, self.OnButton)
- self.SetAutoLayout(true)
+ self.SetAutoLayout(True)
self.SetSizer(box)
def OnButton(self, evt):
data = []
while 1:
text = file.readline()
- text = string.strip(text)
+ text = text.strip()
if not text:
break
- list_val = string.splitfields(text,'\t')
+ list_val = text.split('\t')
data.append(list_val)
file.close()