On Jun 17, 2019, at 10:58 PM, johnf <[email protected]> wrote: > > In the past I did the following: > > col1.CustomRendererClass = PhoneDisplay but this causes > > /home/johnf/testdabo/dabo/dabo/ui/dGrid.py:844: wxPyDeprecationWarning: Using > deprecated class. Use GridCellRenderer instead. renderer = rendClass()
What is the base class for your PhoneDisplay renderer? It's probably 'PyGridCellRenderer', which was the old name. Just change that to 'GridCellRenderer'. > col1.RendererClass = PhoneDisplay > > where PhoneDisplay is a class. > > The changes causes > > builtins.AttributeError: can't set attribute > > What how is this to be done???? 'RendererClass' is read-only. You should set the 'CustomRendererClass' property to your class instead. -- Ed Leafe _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev Searchable Archives: https://leafe.com/archives This message: https://leafe.com/archives/byMID/[email protected]
