Different Look of ListCtrl 4.0.7 <-> 4.1.1

13 views
Skip to first unread message

Markus Mauer

unread,
Feb 15, 2022, 12:50:42 PM2/15/22
to wxPython-users
The vertical border changed from wxPython 4.0.7 to 4.1.1. On the former, the vertical border stopped on the last element. Now, the border is drawn all the way down to the bottom.

Is there some way to get the old look?

Example (see attached screenshots)

#!/usr/bin/env python
import wx

app = wx.App()

frame = wx.Frame(None, title='Simple application')

lw = wx.ListCtrl(frame, style=wx.LC_REPORT|wx.SUNKEN_BORDER|wx.LC_HRULES|wx.LC_VRULES)
lw.AppendColumn("A")
lw.AppendColumn("B")
lw.Append(("a1", "b1"))
lw.Append(("a2", "b2"))

frame.Show()

app.MainLoop()

listctrl_411.png
listctrl_407.png
Reply all
Reply to author
Forward
0 new messages