Pygame checkbox5/22/2023 ![]() Listbox = Tkinter.Listbox(master, selectmode=MULTIPLE if selectMultiple else SINGLE, width=w, height=h)ī = Tkinter.Button(master, command=callback(listbox), text=buttonText)Īnd here is my script import GetUserInputĬhoice = GetUserInput.chooseFromList(listOfOptions)Ĭan't invoke "listbox" command: application has been destroyed Here is my module so far: # This serve as a module to get user input - the easy way!ĭef chooseFromList(list, windowTitle="Choose from list", buttonText="Submit", selectMultiple=False, w=150, h=30): I thought that I could implement solution easily into a module, but it's not that simple (for me). ![]() I still want to be able to use my ideal case in whatever script I'm working on and your answer gets me half the way. There must be something out there since this is a common programming it is not to be rude that I unchecked your answer as the solution to my problem. It's kinda like raw_input but with a GUI. ListOfOptions = ĬhoosenOptions = magicGUImodule.getChecklist(listOfOptions, I'm looking for a python module that has some build-in GUI methods to get quick user inputs - a very common programming case.
0 Comments
Leave a Reply. |