(May-26-2019, 02:05 PM)heiner55 Wrote: GUI libraries like wxpython can do that:
GetTextExtent(self, st)
Return the dimensions of the given string’s text extent using the currently selected font.
sorry but I'm not an expert in Python. can you give me a simple example please? I have just install the "wxpython" library via pip but I don't understand how can I use it to reach my goal. for example, what is the "width" of the "hello!" text (font: Calibri, font size: 11)?