Lines Matching refs:tv
8 from idlelib import textview as tv
35 class VW(tv.ViewWindow): # Used in ViewWindowTest.
75 scroll = tv.AutoHideScrollbar(root)
94 frame = tv.ScrollableTextFrame(self.root, wrap=wrap, **kwargs)
130 cls.frame = tv.ViewFrame(root, 'test text')
149 cls.orig_error = tv.showerror
150 tv.showerror = Mbox_func()
154 tv.showerror = cls.orig_error
158 view = tv.view_text(root, 'Title', 'test text', modal=False)
159 self.assertIsInstance(view, tv.ViewWindow)
160 self.assertIsInstance(view.viewframe, tv.ViewFrame)
164 view = tv.view_file(root, 'Title', __file__, 'ascii', modal=False)
165 self.assertIsInstance(view, tv.ViewWindow)
166 self.assertIsInstance(view.viewframe, tv.ViewFrame)
173 view = tv.view_file(root, 'Title', 'abc.xyz', 'ascii', modal=False)
175 self.assertEqual(tv.showerror.title, 'File Load Error')
180 view = tv.view_file(root, 'Title', fn, 'ascii', modal=False)
182 self.assertEqual(tv.showerror.title, 'Unicode Decode Error')
185 view = tv.view_text(root, 'Title', 'test', modal=False, wrap='none')
204 self.view = tv.view_text(root, 'TITLE_TEXT', 'COMMAND', _utest=True)
217 self.view = tv.view_file(root, 'TITLE_FILE', __file__,