开发者

WxPython, change Frame style

开发者 https://www.devze.com 2023-01-29 07:26 出处:网络
class Window (wx.MiniFrame): def __init__ ( self ): wx.MiniFrame开发者_运维知识库.__init__(self, None, -1, \'Mini\')
class Window (wx.MiniFrame):
def __init__ ( self ):
    wx.MiniFrame开发者_运维知识库.__init__(self, None, -1, 'Mini') 
    self.panel = wx.Panel(self)
    (...)

Can I/How to edit MiniFrame style

f.e. in my method ChangeStyle(), I want to make a MiniFrame with new parameter (style = wx.NO_BORDER)

Do I have to kill the window and run them again?


You can try the frame's SetWindowStyle or SetWindowStyleFlag methods and see if they work. If not, then you'll probably have to close the frame and recreate it with the styles you want.

0

精彩评论

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