wxPython窗口最大化/恢复

时间:2013-06-04 17:25:33

标签: python wxpython wxwidgets

在我最小化窗口后,我怎样才能恢复它?

Iconize()必须是强制性的。

import wx

class AAAA(wx.Frame):
    def __init__(self,parent,id):
        wx.Frame.__init__(self,parent,id,'Untitled',size=(450,395))

        def minimizeProgram(event):
            print 'minimized'
            self.Iconize()

        self.Bind(wx.EVT_ICONIZE,minimizeProgram)


if __name__=='__main__':
    app = wx.PySimpleApp()
    frame = AAAA(parent=None,id=-1)
    frame.Show()
    app.MainLoop()

1 个答案:

答案 0 :(得分:2)