-1

最小化窗口后,如何恢复?

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()
4

1 回答 1

2

只需调用wxWindow::Iconize(false)

于 2013-06-04T17:48:24.060 回答