[Gambas-user] An utility component for Gambas

Benoît Minisini gambas at ...1...
Tue Dec 2 20:26:53 CET 2014


Le 02/12/2014 11:01, Julio Sanchez a écrit :
> Benoît:
>
> Well...
>
>   what if only create an object of the same class of "original" object (no
> controls) and copy the values of the properties?
> ( Return a shallow copy of object. )
>
> Comment:
> In other languages, there _copy() method which can be declared as must back
>
> https://docs.python.org/2/library/copy.html
> http://www.elclubdelprogramador.com/2014/08/13/pyhton-crea-una-copia-rapida-de-un-objeto-en-python/
>
>
> (maybe that add a new _copy () method is beyond what you ask for gb.util)
>
> Regards
> Julio
>

Anyway gb.util is not for GUI, so a routine that would copy a control 
cannot be placed in it.

Regards,

-- 
Benoît Minisini




More information about the User mailing list