<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Curso_de_Programaci%C3%B3n_en_Python%2FInput-9</id>
	<title>Curso de Programación en Python/Input-9 - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Curso_de_Programaci%C3%B3n_en_Python%2FInput-9"/>
	<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/Input-9&amp;action=history"/>
	<updated>2026-05-18T13:38:45Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>http://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/Input-9&amp;diff=6993&amp;oldid=prev</id>
		<title>Rrc en 18:33 8 ene 2015</title>
		<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/Input-9&amp;diff=6993&amp;oldid=prev"/>
		<updated>2015-01-08T18:33:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[:#Input-9 | Input-9.py]]&lt;br /&gt;
** [[:#Resultado | Resultado]]&lt;br /&gt;
&lt;br /&gt;
== Input-9.py ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;GESHI_FANCY_LINE_NUMBERS&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#!/usr/bin/python3&lt;br /&gt;
#-*-coding: utf-8 -*-&lt;br /&gt;
&lt;br /&gt;
import tkinter as tk&lt;br /&gt;
&lt;br /&gt;
class Application( tk.Frame ):&lt;br /&gt;
  def __init__( self, master=None ):&lt;br /&gt;
    tk.Frame.__init__( self, master )&lt;br /&gt;
    self.pack()&lt;br /&gt;
    self.createWidgets()&lt;br /&gt;
&lt;br /&gt;
  def createWidgets( self ):&lt;br /&gt;
    self.hi_there = tk.Button( self )&lt;br /&gt;
    self.hi_there[&amp;quot;text&amp;quot;] = &amp;quot;Hola Mundo\n( Da click aquí )&amp;quot;&lt;br /&gt;
    self.hi_there[&amp;quot;command&amp;quot;] = self.say_hi&lt;br /&gt;
    self.hi_there.pack( side=&amp;quot;top&amp;quot; )&lt;br /&gt;
    self.QUIT = tk.Button( self, text=&amp;quot;Terminar&amp;quot;, fg=&amp;quot;red&amp;quot;,&lt;br /&gt;
                                            command=root.destroy )&lt;br /&gt;
    self.QUIT.pack( side=&amp;quot;bottom&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
  def say_hi( self ):&lt;br /&gt;
    print( &amp;quot;Saludos a todos!&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
root = tk.Tk()&lt;br /&gt;
app = Application( master=root )&lt;br /&gt;
app.mainloop()&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Resultado ===&lt;br /&gt;
&lt;br /&gt;
[[File:Input-9.png]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Programación en Python]]&lt;br /&gt;
[[Category:PythonCabal]]&lt;br /&gt;
[[Category:CursoPython]]&lt;/div&gt;</summary>
		<author><name>Rrc</name></author>
		
	</entry>
</feed>