<s> '''<STR_LIT>''' <EOL> __docformat__ = '<STR_LIT>' <EOL> __version__ = '<STR_LIT>' <EOL> import time <EOL> import unittest <EOL> from pyglet import window <EOL> from pyglet . window . event import WindowEventLogger <EOL> class WINDOW_SET_VISIBLE ( unittest . TestCase ) : <EOL> def test_set_visible ( self ) : <EOL> w = window . Window ( <NUM_LIT:200> , <NUM_LIT:200> ) <EOL> w . push_handlers ( WindowEventLogger ( ) ) <EOL> last_time = time . time ( ) <EOL> visible = True <EOL> while not w . has_exit : <EOL> if time . time ( ) - last_time > <NUM_LIT:5> : <EOL> visible = not visible <EOL> w . set_visible ( visible ) <EOL> last_time = time . time ( ) <EOL> print '<STR_LIT>' % visible <EOL> w . dispatch_events ( ) <EOL> w . close ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
