I try to set up a wx.dataview.DataViewListCtrl. I have multiple columns with text content. Some Entries of the first column are wider than the selected default width. They are cut off. I could set the column width by hand but I like to set it up automatically to the maximum content or header width. Is there an automated way to do so? If not, how can I calculate the ideal width. I'm on Ubuntu Linux. The used backend is gtk. A C++ answer using wxDataViewListCtrl could help, too. I'm able to translate it.
You can set the column width to wxCOL_WIDTH_AUTOSIZE (probably mapped to wx.COL_WIDTH_AUTOSIZE in Python) to make it fit its existing elements.
Set column width to maximum content or header width for a wx.dataview.DataViewListCtrl