Skip to content

Form

Construct a form widget with the parent MASTER.

Parameters

NameTypeDescription
parenttkinter.Tk
titlestr
descriptionstr
tearoffbool

Methods

add_radio

Add multiple choice

Parameters

NameTypeDescription
questionstr

add_checkbox

Add checkbox

Parameters

NameTypeDescription
questionstr

add_dropdown

Add dropdown list

Parameters

NameTypeDescription
questionstr

add_file

Add file upload

Parameters

NameTypeDescription
questionstr
filetypesstr
multiplebool
maxsizeint

add_linear_scale

Add linear scale

Parameters

NameTypeDescription
questionstr
from_int
toint
startint
endint

add_radio_grid

Add multiple choice grid

Parameters

NameTypeDescription
questionstr
rowint
columnint

add_checkbox_grid

Add checkbox grid

Parameters

NameTypeDescription
questionstr
rowint
columnint

add_short_answer

Add short answer

Parameters

NameTypeDescription
questionstr

add_paragraph

Add paragraph

Parameters

NameTypeDescription
questionstr

add_title

Add title and description

Parameters

NameTypeDescription
titlestr
descriptionstr

add_image

Add image

Parameters

NameTypeDescription
filestr
titlestr

add_submit_button

Add submit button

Parameters

NameTypeDescription
commandCallable

add_reset_button

Add reset button

Parameters

NameTypeDescription
commandCallable

Example

py
import tkinter
import tkinterplus

root = tkinter.Tk()
widget = tkinterplus.Form(root)
widget.pack()
root.mainloop()

Not associated with or approved by Mojang Studios or Microsoft