How to get a window ID in linux using python?

"Martin v. Löwis" martin at v.loewis.de
Wed Jun 3 04:58:51 EDT 2009


> In Linux, we can get window info by executing 'xwininfo' and then
> selecting the desired window manually. Can this be done automatically
> in python?

You can run "xwininfo -tree -root", and then parse the output.

HTH,
Martin



More information about the Python-list mailing list