class Test(unittest.TestCase):
......
無縮進t = Test(‘test1’,'test2')
class InsertFrame(wx.Frame):
......
self.Bind(wx.EVT_BUTTON, self.OnTest, button2)
......
def OnTest(self, event):
test = Test()
test.setToken("****", "****")
self.screen_name = label.screen_name.GetValue()
直接用實例化後的t.user_timeline
t.user_timeline(self.screen_name)
for i in range[0:200]:
self.tc.AppendText(test.temp[i])