Skip to content

AskEnum

Construct a askenum widget with the parent MASTER.

Parameters

NameTypeDescription
mastertkinter.Tk
titlestr
promptstr
defaultstr
valuelist

Example

py
import tkinter

def callback():
  print('Hello World')

root = tkinter.Tk()
tkinter.Button(root, text='askenum', command=callback).pack()
root.mainloop()

Not associated with or approved by Mojang Studios or Microsoft