开发者

wxFrame with title bar but non resizable

开发者 https://www.devze.com 2022-12-17 11:47 出处:网络
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

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

精彩评论

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