From professional translators, enterprises, web pages and freely available translation repositories.
para este ejercicio usaremos el kit de tkinter que acompaña a la distribución de python. tkinter es una interfaz que envuelve las funciones originales de tk para ser utilizadas desde python. también está disponible para perl.
this is a python wrapper around the tk toolkit originally written as an extension to tcl and also available for perl. the python version is an object oriented framework which is, in my opinion, considerably easier to work with than the original procedural tk version.
nota 2: return "break" es una señal mágica que le indica a tkinter que no invoque el procesamiento de eventos por defecto del cuadro gráfico.
note 2: return "break" is a magic signal to tell tkinter not to invoke the default event processing for that widget.
no voy a explicar todo lo que hemos hecho; en su lugar te recomiendo que le des una ojeada al tutorial de tkinter en el sitio de python. es una excelente introducción a tkinter, y además es muy completo.
if you've read my gui topic it should mostly be clear but for more detail i recommend that you take a look at the tkinter tutorial and reference found on the pythonware web site. this is an excellent introduction and reference to tkinter going beyond the basics that i cover in my topic.
hemos definido también un método __init__ que llama a su vez al método frame.__init__ de la superclase, para asegurarnos de que tkinter esté correctamente instalado internamente.
we have also defined our application to be a subclass of frame and the __init__ method calls the frame.__init__ superclass method to ensure that tkinter is set up properly internally.