Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以更改 wx.Notebook 中选项卡标题的字体大小?我知道如何使用 SetPadding 更改制表符间距/填充,但我也想更改文本的实际大小。
使用 Notebook 的 SetFont 方法:
notebook.SetFont(wx.Font(8, wx.FONTFAMILY_DEFAULT, wx.FONTWEIGHT_NORMAL, wx.FONTSTYLE_NORMAL))
这对我在 Ubuntu 上使用 wxPython 2.8、Python 2.7 有效