wxPython Window Maximize/restore

2019-09-19 12:25发布

After i minimize my window, how can i get it back up?

The Iconize() must be mandatory.

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条回答
聊天终结者
2楼-- · 2019-09-19 13:08
登录 后发表回答