[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] pygame & win id
- To: pygame-users@xxxxxxxx
- Subject: [pygame] pygame & win id
- From: manatlan <manatlan@xxxxxxxxx>
- Date: Thu, 17 Mar 2005 20:48:34 +0100
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Thu, 17 Mar 2005 14:48:56 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=ZObo10Z+WoGkP8Fk0A+pjvp7Wsb3KeiZyf3rVQkglm9aUw5ReNemD3t+2O64H8DZO7hB6VMefGNuJiRbwRNmf1Qkb+uKHrKDBxvslTx8cLiPPyQs3gC/sWDpBY5YNpjdd7xbWIFFfX3i8M7LyebZgxaHBqk4ZcXelRt6RN0eHxU=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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 ?