On Nov 14, 2007 3:09 PM, Daniele Varrazzo <[EMAIL PROTECTED]> wrote:
> Mr.SpOOn ha scritto:

> > E come faccio a collegare un bottone all'area di testo?
>
> Nell'init della form in cui metti sia il test box che il bottone, devi
> collegare un evento del bottone ad una funzione.
>
>      def __init__(...)
>          self.the_text_ctrl = wx.TextCtrl(self, -1, ...)
>          self.the_button = wx.Button(self, -1, ...)
>          self.Bind(wx.EVT_BUTTON, self.buttonPressed)
>
> In questa funzione puoi leggere il valore del text box come stringa:
>
>      def buttonPressed(self, evt):
>          s = self.the_text_ctrl.GetValue()
>
> Tutto non testato!

Ok, grazie mille :D
Almeno ora so su cosa soffermarmi.
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a