Puoi usare btn=wx.Button(self, wx.ID_CANCEL, label="Annulla") La doc: http://docs.wxwidgets.org/2.8/wx_wxbutton.html
Puoi anche usare un constructor tipo wxGlade Il giorno 06 aprile 2013 09:30, Adriano Barbieri <adrianob...@yahoo.it> ha scritto: > Buongiorno a tutti. > Creando un dialogo: > ... > ... > ... > Arrivando ad esempio: > s.Add(self.CreateButtonSizer(**wx.OK|wx.CANCEL), 0, wx.ALL|wx.EXPAND, 5) > > Come posso cambiare l'etichetta del bottone "Cancel" in "Annulla"? > > Potrei inserire i bottoni nel sizer così: > btn = wx.Button(self, wx.ID_OK) > btn.SetDefault() > s.btnsizer.AddButton(btn) > btn = wx.Button(self, wx.ID_CANCEL) > btn.SetLabel("Annulla") > s.btnsizer.AddButton(btn) > > singolarmente e così settare l'etichetta del bottone in causa, ma se c'è > il modo di farlo in un colpo solo sarebbe meglio. > > Grazie a chi vorrà illuminarmi :) > Adriano > > > ______________________________**_________________ > Python mailing list > Python@lists.python.it > http://lists.python.it/**mailman/listinfo/python<http://lists.python.it/mailman/listinfo/python> > -- ____________________________ Giuseppe Amato e-mail: giuam...@gmail.com
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python