[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] pygame & win id



this little script should display the xwininfo about a pygame window,
and it doesn't work ... it seems that the pygame window doesn't exists
:

import pygame,commands

pygame.init()
screen = pygame.display.set_mode((640,480))
pygame.display.set_caption("mywin")
print commands.getoutput("""xwininfo -tree -name "mywin" """)
pygame.quit()

i need to get the "windows id" of a pygame window ... but xwininfo is
not able to find the window by the name ...
how can i get this "windows id" ? how pygame create tis own window ?