from tkinter import *
from tkinter import ttk

class root(object):
    def __init__(self):
        self.window = Tk()
        self.window.geometry("500x300")
        self.lbl = Label(self.window, text="Nombre: ")
        self.lbl.grid(column=0, row=0)
        self.txtContent = StringVar()
        self.txt = Entry(self.window, width=20, textvariable=self.txtContent )
        self.txt.grid(column=1, row=0)
        self.btn = Button(self.window, command= lambda: self.click(), text="Púlsame")
        self.btn.grid(column=2, row=0)
        self.listbox = Listbox(self.window)
        self.listbox.grid(column=1, row=1)
        self.window.mainloop()

class Main(root):
    def __init__(self):
        root.__init__(self)
        
    def click(self):
        self.listbox.insert(END, self.txtContent.get())
        self.txtContent.set("")
obj = Main()
d5c208d3a63af8ca5ddfee354522da260b8840c0
<mask token>


class root(object):
    <mask token>


class Main(root):

    def __init__(self):
        root.__init__(self)

    def click(self):
        self.listbox.insert(END, self.txtContent.get())
        self.txtContent.set('')


<mask token>

<mask token>


class root(object):

    def __init__(self):
        self.window = Tk()
        self.window.geometry('500x300')
        self.lbl = Label(self.window, text='Nombre: ')
        self.lbl.grid(column=0, row=0)
        self.txtContent = StringVar()
        self.txt = Entry(self.window, width=20, textvariable=self.txtContent)
        self.txt.grid(column=1, row=0)
        self.btn = Button(self.window, command=lambda : self.click(), text=
            'Púlsame')
        self.btn.grid(column=2, row=0)
        self.listbox = Listbox(self.window)
        self.listbox.grid(column=1, row=1)
        self.window.mainloop()


class Main(root):

    def __init__(self):
        root.__init__(self)

    def click(self):
        self.listbox.insert(END, self.txtContent.get())
        self.txtContent.set('')


<mask token>

<mask token>


class root(object):

    def __init__(self):
        self.window = Tk()
        self.window.geometry('500x300')
        self.lbl = Label(self.window, text='Nombre: ')
        self.lbl.grid(column=0, row=0)
        self.txtContent = StringVar()
        self.txt = Entry(self.window, width=20, textvariable=self.txtContent)
        self.txt.grid(column=1, row=0)
        self.btn = Button(self.window, command=lambda : self.click(), text=
            'Púlsame')
        self.btn.grid(column=2, row=0)
        self.listbox = Listbox(self.window)
        self.listbox.grid(column=1, row=1)
        self.window.mainloop()


class Main(root):

    def __init__(self):
        root.__init__(self)

    def click(self):
        self.listbox.insert(END, self.txtContent.get())
        self.txtContent.set('')


obj = Main()

from tkinter import *
from tkinter import ttk


class root(object):

    def __init__(self):
        self.window = Tk()
        self.window.geometry('500x300')
        self.lbl = Label(self.window, text='Nombre: ')
        self.lbl.grid(column=0, row=0)
        self.txtContent = StringVar()
        self.txt = Entry(self.window, width=20, textvariable=self.txtContent)
        self.txt.grid(column=1, row=0)
        self.btn = Button(self.window, command=lambda : self.click(), text=
            'Púlsame')
        self.btn.grid(column=2, row=0)
        self.listbox = Listbox(self.window)
        self.listbox.grid(column=1, row=1)
        self.window.mainloop()


class Main(root):

    def __init__(self):
        root.__init__(self)

    def click(self):
        self.listbox.insert(END, self.txtContent.get())
        self.txtContent.set('')


obj = Main()

from tkinter import *
from tkinter import ttk

class root(object):
    def __init__(self):
        self.window = Tk()
        self.window.geometry("500x300")
        self.lbl = Label(self.window, text="Nombre: ")
        self.lbl.grid(column=0, row=0)
        self.txtContent = StringVar()
        self.txt = Entry(self.window, width=20, textvariable=self.txtContent )
        self.txt.grid(column=1, row=0)
        self.btn = Button(self.window, command= lambda: self.click(), text="Púlsame")
        self.btn.grid(column=2, row=0)
        self.listbox = Listbox(self.window)
        self.listbox.grid(column=1, row=1)
        self.window.mainloop()

class Main(root):
    def __init__(self):
        root.__init__(self)
        
    def click(self):
        self.listbox.insert(END, self.txtContent.get())
        self.txtContent.set("")
obj = Main()