How to get list opened windows in PyGTK or GTK in Ubuntu?

前端 未结 6 1904
说谎
说谎 2020-12-30 10:37

How to get list opened windows in PyGTK or GTK or other programming language? in Ubuntu?

edit:

i want get list paths opened directories on

6条回答
  •  别那么骄傲
    2020-12-30 10:57

    From the PyGTK reference:

    gtk.gdk.window_get_toplevels()

    The gtk.gdk.window_get_toplevels() function returns a list of all toplevel windows known to PyGTK on the default screen. A toplevel window is a child of the root window (see the gtk.gdk.get_default_root_window() function).

提交回复
热议问题