RSK
RSK

Reputation: 17516

wxFrame with title bar but non resizable

hai guyz

I need to create a login window for that window i need a title bar for dragging but it should not be a resized I need a fixed size for this window

Upvotes: 1

Views: 1328

Answers (1)

Steven Sproat
Steven Sproat

Reputation: 4578

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)

Upvotes: 4

Related Questions