Change the font size of a DataViewCtrl on Mac does not work
Xiang Li <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi
I am using:
>>> print wxversion.getInstalled()
['3.0-osx_cocoa']
>>>
I tried to change the size of a dataViewCtrl using the following code:
(dvctrl is my dataViewCtrl)
font = dvctrl.GetFont()
font.SetPointSize(15)
dvctrl.SetFont(font)
The above code snippet works on Windows and Linux, but does not seem to
have any effect on Mac.
Is this supported on Mac wxPython. If not any workaround?
You can easily reproduce this in wxPython DVC_TreeContrl demo:
add the following lines at the end of class TestPanel(wx.Panel).
...
font = dvtc.GetFont()
font.SetPointSize(20)
dvtc.SetFont(font)
dvtc.Refresh()
On Windows and Linux I can change the dataViewCtrl's font size as expected,
but it has no effect on Mac.
Is this a bug or something else needs to be done on Mac?
Best regards
-Xiang Li
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.