Re: widget subclassing problem




zentara said:
On Thu, 26 Jan 2006 12:45:02 -0500 (EST)
"muppet" <scott asofyet org> wrote:

Two problems here:  first, $my_text is not defined (i presume you have a
global in your copy), and second, the properties have not yet been set in
INIT_INSTANCE.  Instantiation is basically a sequence of INSTANCE_INIT and a
bunch of SET_PROPERTYs.  You'll have to create the Label with no string, and
then provide a property setter or SET_PROPERTY that puts the text into the
label with set_text().

I know this is a hack, but what do you think of just building the widgets in
the SET_PROPERTY, once the options are known?

Because the property may be set multiple times or not at all.



-- 
muppet <scott at asofyet dot org>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]