How to get icon/icon's path of running app in linux/windows?

You can use the module wnck and gtk. For instance: import pygtk pygtk. Require('2.0') import gtk import wnck screen = wnck.

Screen_get_default() while gtk. Events_pending(): gtk. Main_iteration(False) for w in screen.

Get_windows(): name = w. Get_name() icon = w. Get_icon() ... Where name is a string and icon is a GdkPixbuf.

You can read the API documentation for libwnck at http://developer.gnome.org/libwnck/stable/WnckWindow.html, which is for C. However, for Python you only have to remove the prefix wncK_window. If the documentation say wnck_window_get_name(), then in Python would be my_window.

Get_name(). Libwnk is specific to XWindow, hence you can not use it on MS Windows. In that case, you can use other modules that precisely helps on that.

Check the answer for Get list of open windows in Python.

This is what I want, you are genius. Do you have any idea how to handle that with MS Windows? – xliiv Apr 29 at 11:33 @xliiv, I added a reference to a similar question but limited only to MS Windows.It was answered by @reckoner.

– gpoo Apr 29 at 18:08.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions