Questions tagged [optionmenu]

An optionmenu is a UI construct that presents the user with a list of options.

453 questions
3
votes
1 answer

Tkinter: How to call a function using the OptionMenu widget?

I'm working on a simple Python-Tkinter application. Here's a simplification of the code I'm having now. from Tkinter import * root = Tk() def function(x): if x == "yes": a.set("hello") else: …
Roundhouse
  • 98
  • 4
  • 12
3
votes
3 answers

How to Create option menu in FragmentActivity?

Hi Below is the code I am using to create option menu in my FragmentActivity :- @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); getMenuInflater().inflate(R.menu.main, menu); …
user3458918
  • 827
  • 1
  • 10
  • 15
3
votes
0 answers

How to increase text size of option menu programmatically?

I need to increase the font size of option menu. I do search web for this but all i got is to modify android option menu's internal view(com.android.internal.view.menu.IconMenuItemView ) to change text size. But i am looking for a way without…
mnsalim
  • 947
  • 6
  • 16
3
votes
2 answers

Getting the choice of optionmenu right after selection Python

I was wondering if there is any way for me to see what the User has selected among the list displaying, let's say: ["Apple","Orange","Grapes"] right after they select either one of them? Like when user clicks the optionbox, and clicks Apple, Tkinter…
user3404844
  • 145
  • 2
  • 3
  • 14
3
votes
1 answer

Populate Tkinter OptionMenu with list of unknown length, i.e. list of serial ports

I am working on a Python program that logs data from serial ports to .txt files. The program uses Tkinter's OptionMenu to ask the user what serial port to use. The list of ports is made as follows: def serial_ports(): for port in…
Hydrographer
  • 177
  • 7
3
votes
1 answer

How to change or remove submenu border of Tkinter's OptionMenu widget?

I'm trying to get rid of the thick border showing up when I changed the optionmenu and submenu background and foreground color. I did manage to get rid or modify the parent optionmenu border by using: optmenu.configure(hilightthickness=0) There's a…
Ron
  • 95
  • 1
  • 7
2
votes
2 answers

How to use Option Menu without menu button?

in my application I have option menu it run with menu button on phone my question is, if my phone has no button how it is work ?
gulsen
  • 103
  • 1
  • 1
  • 6
2
votes
0 answers

How can I change color of top & bottom bar in Android Options Menu?

Options menu bars I have tried everything to try and change or remove them bars. It doesn't go away. styles.xml: