findwindow by its class name

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • James Hu

    findwindow by its class name

    Hi,

    For the simple code:

    from wxPython.wx import *

    class MyApp(wxApp):
    def OnInit(self):
    frame = wxFrame(NULL, -1, "Hello App")
    frame.Show(true )
    self.SetTopWind ow(frame)
    return true

    app = MyApp(0)
    app.MainLoop()

    Is there any way to know this windows' class name? I need to find it by
    win32gui.FindWi ndow(classname, None) and send msg from another
    application, but not using its title "Hello App".
    MyApp is not the classname, for it couldn't be found by
    FindWindow("MyA pp",None).

    Thanks a lot in advance!

    James

Working...