looking for some libraries

rantingrick rantingrick at gmail.com
Wed Feb 10 12:20:34 EST 2010


@Vision

Its nice to start with examples that don't crash, so try this
instead ;D

import Tkinter as tk

def fooit():
    lister.insert('end', entry1.get())

app = tk.Tk()

label1 = tk.Label(app, text='label-1').grid(row=0, column=0)
entry1 = tk.Entry(app)
entry1.grid(row=0, column=1)
tk.Button(app, text='OK', command=fooit).grid(row=1, column=0,
columnspan=2)

-- there are no redo's in Usenet!!

lister = tk.Listbox(app, width=20, height=10)
lister.grid(row=2, column=0, columnspan=2)

app.mainloop()





More information about the Python-list mailing list