Esempio n. 1
0
    radiobutton1 = Radiobutton(column,
                               variable=variable,
                               value="value1",
                               text="Selection 1")
    radiobutton0.fieldname = "radiobutton"
    radiobutton1.pack(side=LEFT)

    Label(form, text="Text area:").grid(row=6, column=0, sticky=E, pady=(8, 0))

    text = Text(form, height=5)
    text.fieldname = "text"
    text.grid(row=7, column=1, sticky=E + W)

    Label(form, text="Listbox:").grid(row=8, column=0, sticky=E, pady=(8, 0))

    listbox = Listbox(form)
    listbox.fieldname = "listbox"
    listbox.grid(row=9, column=1, sticky=W)

    for item in ["one", "two", "three", "four"]:
        listbox.insert("end", item)

    Label(form, text="Combobox:").grid(row=10, column=0, sticky=E, pady=(8, 0))

    combobox = Combobox(form, values=('X', 'Y', 'Z'), width=5)
    combobox.fieldname = "combobox"
    combobox.grid(row=11, column=1, sticky=W)

    Submit_Button(form, text="Submit").grid(row=12, column=1, sticky=E)

    root.mainloop()
Esempio n. 2
0
    radiobutton0.pack(side=LEFT)
    
    radiobutton1 = Radiobutton(column, variable = variable, value="value1", text="Selection 1")
    radiobutton0.fieldname = "radiobutton"
    radiobutton1.pack(side=LEFT)
    
    Label(form, text="Text area:").grid(row=6,column=0, sticky=E, pady=(8,0))

    text = Text(form, height=5)
    text.fieldname = "text"
    text.grid(row=7,column=1, sticky =E+W)

    Label(form, text="Listbox:").grid(row=8,column=0, sticky=E, pady=(8,0))

    listbox = Listbox(form)
    listbox.fieldname = "listbox"
    listbox.grid(row=9,column=1, sticky=W)

    for item in ["one", "two", "three", "four"]:
        listbox.insert("end", item)

    Label(form, text="Combobox:").grid(row=10,column=0, sticky=E, pady=(8,0))

    combobox = Combobox(form, values = ('X', 'Y', 'Z'), width=5)
    combobox.fieldname = "combobox"
    combobox.grid(row=11,column=1, sticky=W)

    Submit_Button(form, text="Submit").grid(row=12,column=1,sticky =E)
    
    root.mainloop()