Tkinter: OptionMenu Widget Tutorial

preview_player
Показать описание

Good sources to learn Python:

Github Source code:

Рекомендации по теме
Комментарии
Автор

Another great video! I struggled seeing a bit of the red font on the submit_button but got it with your source code. I didn't realize how many graphs are based off tkinter functionality until you did this series. It'd be super interesting to see how tkinter works within packages like matplotlib

CodeWithDerrick
Автор

How is your optionMenu so beautiful ??
I have the optionMenu of the nineties

ButIfWeSurvive-WeHereInTheEnd
Автор

hey i am trying to add the selected item into database using .get() method. But in database its just keep adding a blank row its not adding the selected item name

theglammcoder
Автор

is there no way of making the option menu bigger

maindepth
Автор

Hey !!What if we want a statement to appear after we click submit. Which feature should we use?[For ex:-After we click submit, ''You have successfully submitted'' a statement should appear].PLEAAASE REPLLY

nayanendusanthosh
Автор

Cool! But, how can I set font to OptionMenu?

rokkuzner
Автор

How to increase the font size of options in the option menu

manionduty
Автор

here is the


from tkinter import *
import mysql.connector
root = Tk()
root.geometry("600x600+0+0")
con = mysql.connector.connect(host ="localhost", user = "root", passwd = "1234", database ="feedback")
a = Label(root, text = "movie")
a.grid(row = 0, column = 0)
ans = StringVar(root)
b = OptionMenu(root, ans, "excellent", "good", "bad", "worst", "outstanding")
b.grid(row =0, column =1)
c = Button(root, text="submit")
c.grid(row = 1, column =1)

mycursor = con.cursor()
mycursor.execute("insert into feedback values('"+ans.get()+"')")
mycursor.execute("commit")
con.close()

root.mainloop()

theglammcoder
Автор

how do you make an option menu within an option menu

leonardkabasa
Автор

Is it possible to read the options menu from a csv file?

eliasmichalis