I have a wx.PasswordEntryDialog and I want to prevent it from being resized by the user.
What I've tried:
dialog = wx.PasswordEntryDialog(self, "Insert password", "",
style=wx.TextEntryDialogStyle ^ (wx.RESIZE_BORDER |
wx.RESIZE_BOX |
wx.MAXIMIZE_BOX))
try
size = dialog.GetSize()
dialog.SetMinSize(size)
dialog.SetMaxSize(size)
EDIT:
Calling dialog.SetWindowStyle after initialization worked for me
dialog.SetWindowStyle(wx.CAPTION)