#!/usr/bin/env python # generated by wxGlade 0.2 on Sat Dec 14 15:15:06 2002 import wx from wxPython.wx import * class MyFrame(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: MyFrame.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: MyFrame.__set_properties self.SetTitle("frame_1") self.SetSize((700, 500)) # end wxGlade def __do_layout(self): # begin wxGlade: MyFrame.__do_layout sizer_1 = wx.BoxSizer(wx.VERTICAL) self.SetAutoLayout(True) self.SetSizer(sizer_1) self.Layout() # end wxGlade # end of class MyFrame class MyApp(wx.App): def OnInit(self): wx.InitAllImageHandlers() Mainfraim = MyFrame(None, -1, "") self.SetTopWindow(Mainfraim) Mainfraim.Show() winID = MyFrame.GetId(Mainfraim) print "winID is ", winID return 1 if __name__ == "__main__": app = MyApp(0) app.MainLoop() app.Destroy()
Как мне узнать его ID?