Hello,
How do I make a grid cell have auto-wrap (to multiple lines) feature when it is used for a long string input?
Thanks for your help!
···
–
- wcc
Hello,
How do I make a grid cell have auto-wrap (to multiple lines) feature when it is used for a long string input?
Thanks for your help!
–
wccppp wrote:
Hello,
How do I make a grid cell have auto-wrap (to multiple lines) feature when it is used for a long string input?
Set the renderer for the cell to be a GridCellAutoWrapStringRenderer instance.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Thanks a lot Robin. That did the trick.
–
How can I input multi-line of text strings into a grid cell? I tried both
SetCellRenderer to wx.grid.GridCellAutoWrapStringRenderer()
&
SetCellEditor to wx.grid.GridCellTextEditor()
but didn’t work. When I press “ENTER” key in a cell, the next cell is activated instead of starting a new line in the same cell.
Thank you.
–