[wx-dev] wxMac: wxBU_EXACTFIT and wxWINDOW_VARIANT_MINI
Robin Dunn
robin at alldunn.com
Fri Jun 20 14:13:18 PDT 2008
The text on a button with wxBU_EXACTFIT style and the variant set to
wxWINDOW_VARIANT_MINI will be clipped by several pixels, to the point
that a single character label will be totally clipped. Other
combinations of variants and non-exact fit seem to work fine. Any
suggestions for tracking down a fix for this?
import wx
print wx.version()
class Frame(wx.Frame):
def __init__(self, *args, **kw):
wx.Frame.__init__(self, *args, **kw)
p = wx.Panel(self)
p.SetWindowVariant(wx.WINDOW_VARIANT_MINI)
wx.Button(p, label="H", pos=(25,25), style=wx.BU_EXACTFIT)
wx.Button(p, label="this is longer than the default width",
pos=(25,50), style=wx.BU_EXACTFIT)
app = wx.App(redirect=False)
frm = Frame(None, title='ExactFit & wxWINDOW_VARIANT_MINI')
frm.Show()
app.MainLoop()
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wx-dev
mailing list