简体   繁体   中英

wxpython on Mac - button style

I am using wxPython3.0-osx-cocoa-py2.7 on Mac 10.11.5 with python 2.7.11. Looking at the documentation, for wxmac it show the buttons looking like this:

在此处输入图片说明

But my buttons look like this:

在此处输入图片说明

I am using this code:

closeBtn = wx.Button(self, -1, "Close")
closeBtn.Bind(wx.EVT_BUTTON, self.OnClose)

How can I get mey buttons to look like the wxmac example?

The image in the documentation was from a screenshot in an older version of OSX. Since wxPython uses the native widgets, then they always look the same as the widgets in the current version of the OS (because they are the same widget).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM