tkinter - Python storing user input -
i don't have working code @ this, if wanted take user input , store it, , take different input , store same list (like site storing login information of it's members , associating when want log in) how in python? have short little code:
from tkinter import * import tksimpledialog import tkmessagebox root = tk() w = label(root, text="") w.pack() user_info = tksimpledialog.askstring("user information", "what name?") def list(list_name): list_name = [] list_name.append(user_info) return list_name print list
yet produces result: function list @ 0x7fdf1fa0f668
instead of (for instance) johnny
from tkinter import * import tksimpledialog import tkmessagebox root = tk() w = label(root, text="") w.pack() print list(iter( lambda x:tksimpledialog.askstring("user information", "what name?"),""))
will print names give until give no strings
Comments
Post a Comment