On Sat, Jun 14, 2008 at 5:05 PM, Cesare Di Mauro <[EMAIL PROTECTED]> wrote: > In data 14 giugno 2008 alle ore 21:33:40, Georg Brandl <[EMAIL PROTECTED]> ha > scritto: > >> So what is the advantage to >> >> b = Button(self) >> b.text = "QUIT" >> b.fg = "red" >> b.command = self.quit >> >> ? >> >> Georg > > In this example there are many assignaments, so there aren't many advantages. > > But this > > t = ScrolledText.ScrolledText(master, width=60, height=37) > t.insert(Tkinter.END, self.log.getText()) > t.configure(state=Tkinter.DISABLED) > t.see(Tkinter.END) > t.pack(fill=Tkinter.BOTH) > > can look like: > > on Tkinter: > on ScrolledText.ScrolledText(master, width=60, height=37): > insert(END, self.log.getText()) > configure(state=DISABLED) > see(END) > pack(fill=BOTH) >
Then you have to start guessing from where these names came from. > Cesare Di Mauro > > _______________________________________________ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/ggpolo%40gmail.com > -- -- Guilherme H. Polo Goncalves _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com