Petr Vileta <> wrote:
> I'm writing my first module. I want to set binding to <Configure>
> action and I don't know how to do it.
> I want to invoke my procedure every time when
> $widget->configure(-option => value) is used and any value is
> changed.
>
> I write comething like this
>
> sub Populate {
> my ($w,$args) = @_;
> $w->SUPER::Populate($args);
> $w->ConfigSpecs('-margin' => ['PASSIVE',undef,undef,25]);
> $w->Tk::bind('<Configure>', 'Myconfig'); }
>
> sub Myconfig {
> print "Myconfig is invoked\n";
> }
>
> But Myconfig is invoked only once when widget is created.
> If somebody know how to have control over values changing plese hepl
> me.
I'm not an expert, but my understanding was that the <Configure> event
was generated when a widget was moved or resized. Perhaps that was not
what you were expecting.
Perhaps a better place to ask this sort of question would be
comp.lang.perl.tk (i.e. usenet).
HTH
--
Brian Raven
=================================
Atos Euronext Market Solutions Disclaimer
=================================
The information contained in this e-mail is confidential and solely for the
intended addressee(s). Unauthorised reproduction, disclosure, modification,
and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediately
and delete it from your system. The views expressed in this message do not
necessarily reflect those of Atos Euronext Market Solutions.
L'information contenue dans cet e-mail est confidentielle et uniquement
destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee.
Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail
vous parvient par erreur, nous vous prions de bien vouloir prevenir
l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre
systeme. Le contenu de ce message electronique ne represente pas necessairement
la position ou le point de vue d'Atos Euronext Market Solutions.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs