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()
test.user_timeline(self.screen_name)
for i in range[0:200]:
self.tc.AppendText(test.temp[i])
class Test(unittest.TestCase):
......
user_timeline是在Test中的一个方法,需要在第一个类中调用,如何修改程序?