Hi,
I'm using wxPython on Linux
How should I set the WM_CLASS of my frame? wxWindow::SetName does not help (it sets only WM_NAME), and xprop says:
WM_CLASS(STRING) = "frame", "frame"
WM_LOCALE_NAME(STRING) = "ru_RU.KOI8-R"
WM_CLIENT_MACHINE(STRING) = "kolgaa"
WM_ICON_NAME(STRING) = "My app"
WM_NAME(STRING) = "My app"
Thanks, Aleksej
Robin
2
Aleksej Kolga wrote:
Hi,
I'm using wxPython on Linux
How should I set the WM_CLASS of my frame? wxWindow::SetName does not help (it sets only WM_NAME), and xprop says:
WM_CLASS(STRING) = "frame", "frame"
WM_LOCALE_NAME(STRING) = "ru_RU.KOI8-R"
WM_CLIENT_MACHINE(STRING) = "kolgaa"
WM_ICON_NAME(STRING) = "My app"
WM_NAME(STRING) = "My app"
It needs to be done when the window is created, so use the name parameter of the wxFrame constructor:
frame = wxFrame(None, -1, "Hello", name="HelloFrame")
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!