Hi,
I want to change the font of a wx.Grid object (self.grEntry) and set the weight of the LabelFont to bold with the following code:
self.grEntry.SetOwnFont(self.DicFont)
labelFont = self.DicFont
labelFont.SetWeight(wx.FONTWEIGHT_BOLD)
self.grEntry.SetLabelFont(labelFont)
This works insofar that the labels are bold but also the cell text changes to bold.
Any clue why this happens?
Because you are using the same font object for each.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!