光阴似箭催人老,日月如移越少年。
试试 self.panel()
def __init__(self): wx.Frame.__init__(self,None," ",(0,0),(100,100)) self.panel = wx.Panel(self,-1) def a(self): print self.panel
试试 self.panel()