Forum: Poser Python Scripting


Subject: Defining wxPython button font size on a Mac

PhilC opened this issue on Jul 18, 2012 ยท 9 posts


bagginsbill posted Wed, 18 July 2012 at 4:36 PM

fontSize = 8 buttonFont = wx.Font(fontSize, wx.FONTFAMILY_DEFAULT, wx.NORMAL, wx.NORMAL)

if not hasattr(wx, 'RealButton'):
        wx.RealButton = wx.Button

class MyButton(wx.RealButton):
        def __init__(self, *a, **k):
                RealButton.__init__(self, *a, **k)
                self.Font = buttonFont

wx.Button = MyButton

Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)