From: <and...@bl...> - 2024-12-16 19:42:27
|
Hi Gonzalo I have now removed the legacy code, including the weird renames, they should not be needed any more. Actually, swig generates getter and setter by default. However, we have switched this off in line 37 in fltk.i:e %rename("$ignore",%$isvariable) ""; So, I just made sure that the proper swig macros were applied again, but only for the variables that we needed. This you can find in lines 18-29 of Fl.i. Best regards Andreas > Gonzalo Garramuño <gga...@gm...> hat am 15.12.2024 23:24 CET geschrieben: > > > On 12/15/2024 6:35 PM, and...@bl... wrote: > > Still, it is possible to have the getters and setters auto-generated > > and use them through the fget and fset methods, this appears to work. > > You can see the adjusted example in the attachment. If you can live > > with this for the time being then I could commit my changes. > > Seems to work. However, I am curious, what's the swig command that > creates the fget/fset (ie. getters/setters)? > > Right now, I am looking at r653 and the Fl.i still has my code and a > weird rename for my methods. Is this legacy code? > > Either way, the widgets sample you provided should probably go into the > unit tests directory. > > -- > Gonzalo Garramuño > gga...@gm... > > > > _______________________________________________ > Pyfltk-user mailing list > Pyf...@li... > https://lists.sourceforge.net/lists/listinfo/pyfltk-user |