<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> from pyglet . gl import * <EOL> class WINDOW_SET_MOUSE_PLATFORM_CURSOR ( unittest . TestCase ) : <EOL> i = <NUM_LIT:0> <EOL> def on_key_press ( self , symbol , modifiers ) : <EOL> names = [ <EOL> self . w . CURSOR_DEFAULT , <EOL> self . w . CURSOR_CROSSHAIR , <EOL> self . w . CURSOR_HAND , <EOL> self . w . CURSOR_HELP , <EOL> self . w . CURSOR_NO , <EOL> self . w . CURSOR_SIZE , <EOL> self . w . CURSOR_SIZE_UP , <EOL> self . w . CURSOR_SIZE_UP_RIGHT , <EOL> self . w . CURSOR_SIZE_RIGHT , <EOL> self . w . CURSOR_SIZE_DOWN_RIGHT , <EOL> self . w . CURSOR_SIZE_DOWN , <EOL> self . w . CURSOR_SIZE_DOWN_LEFT , <EOL> self . w . CURSOR_SIZE_LEFT , <EOL> self . w . CURSOR_SIZE_UP_LEFT , <EOL> self . w . CURSOR_SIZE_UP_DOWN , <EOL> self . w . CURSOR_SIZE_LEFT_RIGHT , <EOL> self . w . CURSOR_TEXT , <EOL> self . w . CURSOR_WAIT , <EOL> self . w . CURSOR_WAIT_ARROW , <EOL> ] <EOL> if symbol == key . ESCAPE : <EOL> self . w . on_close ( ) <EOL> if symbol == key . RIGHT : <EOL> self . i = ( self . i + <NUM_LIT:1> ) % len ( names ) <EOL> elif symbol == key . LEFT : <EOL> self . i = ( self . i - <NUM_LIT:1> ) % len ( names ) <EOL> cursor = self . w . get_system_mouse_cursor ( names [ self . i ] ) <EOL> self . w . set_mouse_cursor ( cursor ) <EOL> print '<STR_LIT>' % names [ self . i ] <EOL> return True <EOL> def test_set_visible ( 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> glClear ( GL_COLOR_BUFFER_BIT ) <EOL> w . dispatch_events ( ) <EOL> w . flip ( ) <EOL> w . close ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
