def test_screen(self):
        widget = self.create()
        self.assertEqual(widget['screen'], '')
        try:
            display = os.environ['DISPLAY']
        except __HOLE__:
            self.skipTest('No $DISPLAY set.')
        self.checkInvalidParam(widget, 'screen', display,
                errmsg="can't modify -screen option after widget is created")
        widget2 = self.create(screen=display)
        self.assertEqual(widget2['screen'], display)
dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/test/test_tkinter/test_widgets.py/ToplevelTest.test_screen