From: Matthias M. <mm...@ma...> - 2025-07-01 10:52:18
|
Not sure how it is implemented, but in C++ FLTK, 'w' is an in.out parameter. So you need to pass the preferred with with w, and it will return the actual width. For Python, I would expect something line `w,h = widget.measure_label(w)`. For reference, `fl_measuer(...)` is pretty much the same call. Can you see how that one is called? > On 30. Jun 2025, at 11:29, Andreas Kemnade <an...@ke...> wrote: > > Hi, > > I wonder a bit how the measure_label method should be used. > Intuitively according to https://www.swig.org/Doc1.3/Arguments.html in > the genwinsize example I would expect > w,h = widget.measure_label() > > but that does not work. So what is the right way? > > Regards, > Andreas |