wxPython Window Maximize/restore

橙三吉。 提交于 2019-12-13 08:26:38

问题


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:


Simply call wxWindow::Iconize(false)



来源:https://stackoverflow.com/questions/16923906/wxpython-window-maximize-restore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!