wx.StaticText's label does not contract using SetSizerAndFit()
wx.StaticText's label does not contract using SetSizerAndFit() Question: I’d like to place a filename after the file is chosen and contract it if the file name is too long. Here is my code: import wx class Dlg(wx.Dialog): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.input_pnl = wx.Panel(self) self.choose_input = wx.Button(self.input_pnl, label=’Select’) self.input_filename = wx.StaticText(self.input_pnl, style=wx.ST_ELLIPSIZE_END) self.input_szr …