An optionmenu is a UI construct that presents the user with a list of options.
Questions tagged [optionmenu]
453 questions
4
votes
3 answers
Image Icon with Action Bar's Option Menu Item
I want to display Action Bar's Option Menu items with Image Icon like one we use in Navigation Drawer Bar.
Right now, My app option menu is showing as below : How do I display Image icon with Item 1, Item 2 etc.

Jeeten Parmar
- 5,568
- 15
- 62
- 111
4
votes
1 answer
Tkinter Python: How to pass more than one argument through a lambda function in an OptionMenu
So as the title suggests, I'm having trouble passing in 2 arguments to a function I want to call when an option menu is changed.
Here is the code below:
OPTIONS = [
"Fire",
"Ice",
"Storm",
"Life",
"Myth",
…

Gunner Stone
- 997
- 8
- 26
4
votes
2 answers
How to styling MenuItems Toolbar when pressed
In KitKat, I have a styled options menu in a supported library toolbar defined as following

marco
- 3,193
- 4
- 28
- 51
4
votes
1 answer
More concise way to configure tkinter option menu?
I am a beginner in python, normally if i want to add option menu to my program, i would do something like this.
from Tkinter import*
root=Tk()
mylist=['a','b','c']
var=StringVar(root)
var.set("Select…

Chris Aung
- 9,152
- 33
- 82
- 127
3
votes
0 answers
How to make rounded ttk.OptionMenu in Tkinter
I want to make a rounded OptionMenu with the ttk style,
but I can't think on way doing so, and I can't find it anywhere on the internet.
This what I have so far:
from tkinter import *
from tkinter import ttk
master = Tk()
style =…

Anon142
- 31
- 1
3
votes
1 answer
How to use an OptionMenu in Python Tkinter to set the justify option in a text box
I am creating a word editor in which I would like a taskbar at the top which has an OptionMenu widget with 3 possible choices - "right", "left", and "center". When one of these choices are chosen, it should take the value of that choice and set a…

Aditya S
- 33
- 1
- 9
3
votes
1 answer
How to disable a tkinter OptionMenu
I can't figure out or find how to disable a tkinter OptionsMenu. I have 3 optionsmenu's in my GUI and want to disable them when a button is clicked
self.menu = OptionMenu(self, var, *items)
btn = Button(self, text="disable", command =…

E. Oregel
- 321
- 2
- 4
- 15
3
votes
1 answer
Android: Three dot icon and sub menu icon are not showing after clicking/expanding them
I want to see three dot icon and sub menu icon even after expanding them.
First Picture not showing any icon:
Should be like this:

user3137451
- 181
- 1
- 2
- 16
3
votes
1 answer
android-remove title of submenu item on right side option menu?
Here is my menu xml code for menu and submenu,
When i press in menu that contain submenu, there is submenu autometic show title of there parent menu i want to remove it.
Here is screen for it's
-

Chirag.T
- 746
- 1
- 6
- 18
3
votes
1 answer
Listening to menu opening
I have a RelativeLayout. In that I create several ToggleButton views. The user can set those ToggleButtons on and off.
When the user opens the Activity's OptionMenu I want all those ToggleButtons to become OFF. To do this I am setting…

geo
- 517
- 1
- 9
- 28
3
votes
1 answer
Getting the value of selected item in optionMenu Tkinter
I've made some optionMenu in Tkinter in python, I want to get the value that has been selected by the user. I've used var.get() in the method that gets called when an item is clicked but I'm not getting the correct value. I keep getting "status",…

Dania
- 1,648
- 4
- 31
- 57
3
votes
2 answers
How to create a title bar / settings menu with FragmentActivity?
I created an ActionBarActivity test app, which shows the title bar and settings menu ok. I changed extends ActionBarActivity to extends FragmentActivity and the program runs, but the title bar / menu isn't displayed.
I am using swipe tabs with…

Daniel Lodge
- 51
- 5
3
votes
2 answers
Lowercase option menu text in toolbar android
Shortly, I want to make option menu text in lower case, for example, save, not SAVE.
My app use toolbar in the latest appcompact library. I tried many ways but don't work at all.
There are some related questions but don't work for me:
Android…

ductran
- 10,043
- 19
- 82
- 165
3
votes
5 answers
Custom Menu on button click as drop down
I am trying to implement the action bar functionality of the flipkart app..
For this I have successfully created a custom Action Bar but I am facing problems in showing the menu as drop down on overflow icon click.
If I try Android Option Menu on…

Rohan Kandwal
- 9,112
- 8
- 74
- 107
3
votes
1 answer
More on tkinter optionmenu first option vanishes
This is a followup to my question here. I'm trying to use ttk.OptionMenu to enhance the look and feel of a dropdown menu. But as noted in the post here, "A ttk optionmenu widget starts out with all of its values in the dropdown. Upon selecting any…

sedeh
- 7,083
- 6
- 48
- 65