# How to make an OptionMenu maintain the same width using tkinter?

The OptionMenu allows users to select an option from the given menu of items. To prepare an OptionMenu, we use the OptionMenu(arguments) constructor, which takes the parent widget, a variable to store the options, the default option, and selectable options.

However, in some cases, we can find that the options width is quite different from the pane width. We can maintain the width of the options by finding the maximum length from the given options. Now, by using the config(width) method, we can set the width of the OptionMenu.

## Example

#Import Tkinter library
from tkinter import *
from tkinter import ttk

#Create an instance of Tkinter frame or window
win= Tk()

#Set the geometry of tkinter frame
win.geometry("750x250")

options=("Low", "Medium", "High")

#Find the length of maximum character in the option

win.mainloop()