def main():
    must_quit = False
    cursor = 0
    screen = pygame.display.set_mode((640, 480))
    cursor_visible = True
    
    init_mice(screen.get_width(), screen.get_height())
    
    while not must_quit:
        for e in pygame.event.get():
            if e.type == pygame.locals.QUIT:
                must_quit = True
            elif e.type == pygame.locals.KEYDOWN:
                if e.key == pygame.locals.K_ESCAPE:
                    must_quit = True
                elif e.key == pygame.locals.K_g:
                    pygame.event.set_grab(not pygame.event.get_grab())
                elif e.key == pygame.locals.K_s:
                    cursor_visible = not cursor_visible
                    pygame.mouse.set_visible(0)
                elif e.key == pygame.locals.K_r:
                    manymouse.quit()
                    init_mice(screen.get_width(), screen.get_height())
        update_mice(screen.get_width(), screen.get_height())
        draw_mice(screen)
        
    manymouse.quit()
    pygame.quit()
def main():
    must_quit = False
    cursor = 0
    screen = pygame.display.set_mode((640, 480))
    cursor_visible = True

    init_mice(screen.get_width(), screen.get_height())

    while not must_quit:
        for e in pygame.event.get():
            if e.type == pygame.locals.QUIT:
                must_quit = True
            elif e.type == pygame.locals.KEYDOWN:
                if e.key == pygame.locals.K_ESCAPE:
                    must_quit = True
                elif e.key == pygame.locals.K_g:
                    pygame.event.set_grab(not pygame.event.get_grab())
                elif e.key == pygame.locals.K_s:
                    cursor_visible = not cursor_visible
                    pygame.mouse.set_visible(0)
                elif e.key == pygame.locals.K_r:
                    manymouse.quit()
                    init_mice(screen.get_width(), screen.get_height())
        update_mice(screen.get_width(), screen.get_height())
        draw_mice(screen)

    manymouse.quit()
    pygame.quit()
 def reinit_mice(self):
     manymouse.quit()
     self.init()
 def quit(self):
     manymouse.quit()
 def reinit_mice(self):
     manymouse.quit()
     self.init()
 def quit(self):
     manymouse.quit()