In a wx.Grid, is there a method to overflow (or alternatively to span)
multiple consecutive column labels? ; analagous to SetCellSize (for
span), or SetCellOverflow (for overflow) for cells?
There isn't any built-in support for that, but you could draw the contents of the labels yourself. You can catch the label window's paint event or use the label renderer classes (see wx.lib.mixins.gridlabelrenderer) as shown in the demo.
···
On 3/6/11 6:55 AM, Jeff wrote:
In a wx.Grid, is there a method to overflow (or alternatively to span)
multiple consecutive column labels? ; analagous to SetCellSize (for
span), or SetCellOverflow (for overflow) for cells?
--
Robin Dunn
Software Craftsman
Seems very doable
Thanks!
I can be reached on my cell 917-971-6387
···
On Mar 7, 2011, at 2:08 PM, Robin Dunn <robin@alldunn.com> wrote:
On 3/6/11 6:55 AM, Jeff wrote:
In a wx.Grid, is there a method to overflow (or alternatively to span)
multiple consecutive column labels? ; analagous to SetCellSize (for
span), or SetCellOverflow (for overflow) for cells?There isn't any built-in support for that, but you could draw the contents of the labels yourself. You can catch the label window's paint event or use the label renderer classes (see wx.lib.mixins.gridlabelrenderer) as shown in the demo.
--
Robin Dunn
Software Craftsman
http://wxPython.org--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
Was pretty simple to do using
Gridlabelrenderermixin
Thanks!
I can be reached on my cell 917-971-6387
···
On Mar 7, 2011, at 2:08 PM, Robin Dunn <robin@alldunn.com> wrote:
On 3/6/11 6:55 AM, Jeff wrote:
In a wx.Grid, is there a method to overflow (or alternatively to span)
multiple consecutive column labels? ; analagous to SetCellSize (for
span), or SetCellOverflow (for overflow) for cells?There isn't any built-in support for that, but you could draw the contents of the labels yourself. You can catch the label window's paint event or use the label renderer classes (see wx.lib.mixins.gridlabelrenderer) as shown in the demo.
--
Robin Dunn
Software Craftsman
http://wxPython.org--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en