def open_editwindow(self): self.root.wm_withdraw() self.flist = FileList(self.root) self.ed = self.flist.new() self.text = self.getWidget('text') self.waitForExists('toplevel', title='Untitled', viewable=1) self.topwin = self.getWidget('toplevel', title='Untitled')
class IdleTestCase(TkTestCase): def open_editwindow(self): self.root.wm_withdraw() self.flist = FileList(self.root) self.ed = self.flist.new() self.text = self.getWidget('text') self.waitForExists('toplevel', title='Untitled', viewable=1) self.topwin = self.getWidget('toplevel', title='Untitled') def close_editwindow(self): self.ed._close()