Home  >  Q&A  >  body text

wxpython - Python如何在一个函数中调用另一个函数的对象

大家讲道理大家讲道理2764 days ago410

reply all(2)I'll reply

  • 黄舟

    黄舟2017-04-18 09:29:02

    Try self.panel()

    reply
    0
  • 阿神

    阿神2017-04-18 09:29:02

    def __init__(self):
        wx.Frame.__init__(self,None," ",(0,0),(100,100))
        self.panel = wx.Panel(self,-1)
    def a(self):
        print self.panel

    reply
    0
  • Cancelreply