开发者

wxFrame with title bar but non resizable

hai guyz

I need to create a login window for that window i need a t开发者_运维知识库itle bar for dragging but it should not be a resized I need a fixed size for this window


frame = wx.Frame(self, title="something", size=(480, 320), style=wx.CAPTION)

You can "mix and match" styles, which can be seen here: http://docs.wxwidgets.org/2.6/wx_wxframe.html

e.g. in my example, no "close box" is shown, so:

frame = wx.Frame(self, title="something", size=(480, 320), style=wx.CAPTION | wx.CLOSE_BOX)

would fix it. (Note: you need wx.SOMETHING, not wxSOMETHING)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜