I'm guessing that the default value of WM_CLASS is being set based on
the name of the binary executable, so that is why you are getting
"python2" for wxPython applications. I don't see any way to change it
in the wx API, but you can probably bypass it by calling directly to a
gtk or Xlib API via ctypes. If you are able to work out the details of
this please add a page to the wiki about it.
--
Robin Dunn
Software Craftsman
http://wxPython.org
You can look at something like system.platform, or for more details you
can look at the items in the platform module. Or you can look at items
in wx.PlatformInfo if all you need is to know which wx port you have.
>
> Could you please recommend a good place to learn about calling C
> functions via ctypes? I will use it to call the
> "gtk_window_set_wmclass" function in GTK.
I usually just stumble around in the dark until I get something that
works. ;-) There is some ctypes calls to gtk functions in
wx.lib.wxcairo you can look at for an example.
No, it is not part of the public API and so it is not wrapped in wxPython.