<s> '''<STR_LIT>''' <EOL> __docformat__ = '<STR_LIT>' <EOL> __version__ = '<STR_LIT>' <EOL> import unittest <EOL> from pyglet import window <EOL> from pyglet . window import key <EOL> import window_util <EOL> class WINDOW_FIXED_SET_SIZE ( unittest . TestCase ) : <EOL> def on_key_press ( self , symbol , modifiers ) : <EOL> delta = <NUM_LIT:20> <EOL> if modifiers & key . MOD_SHIFT : <EOL> delta = - delta <EOL> if symbol == key . X : <EOL> self . width += delta <EOL> elif symbol == key . Y : <EOL> self . height += delta <EOL> self . w . set_size ( self . width , self . height ) <EOL> print '<STR_LIT>' % ( self . width , self . height ) <EOL> def test_set_size ( self ) : <EOL> self . width , self . height = <NUM_LIT:200> , <NUM_LIT:200> <EOL> self . w = w = window . Window ( self . width , self . height ) <EOL> w . push_handlers ( self ) <EOL> while not w . has_exit : <EOL> w . dispatch_events ( ) <EOL> window_util . draw_client_border ( w ) <EOL> w . flip ( ) <EOL> w . close ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
