Python Forum
[Tkinter] Retrieve OptionMenu selection?
Thread Rating:
  • 3 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Retrieve OptionMenu selection?
#6
(Sep-25-2017, 06:03 PM)JP_ROMANO Wrote: I GOT IT!!!!!!!

I need to get the value of the VARIABLE not the MENU itself, so creating a variable to store it I just did this
"myCategory = variable1.get()"
And my selection for the option menu (#1) was stored in myCategory! WOOT!

I tried this "myCategory = variable1.get()" but its not storing into the object mycategory
Reply


Messages In This Thread
Retrieve OptionMenu selection? - by JP_ROMANO - Sep-25-2017, 02:36 PM
RE: Retrieve OptionMenu selection? - by Larz60+ - Sep-25-2017, 04:19 PM
RE: Retrieve OptionMenu selection? - by JP_ROMANO - Sep-25-2017, 04:44 PM
RE: Retrieve OptionMenu selection? - by JP_ROMANO - Sep-25-2017, 06:03 PM
RE: Retrieve OptionMenu selection? - by vsathya - Mar-13-2019, 10:56 AM
RE: Retrieve OptionMenu selection? - by Larz60+ - Sep-25-2017, 08:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Tkinter reduce OptionMenu height euras 2 4,685 May-25-2021, 09:14 PM
Last Post: euras
  [Tkinter] optionmenu value write a list mdalireza 0 2,310 Nov-11-2019, 01:00 PM
Last Post: mdalireza
  [Tkinter] [split] need help in optionMenu using tkinter Rakeshkrtiwari_07 0 2,268 Aug-02-2018, 04:16 PM
Last Post: Rakeshkrtiwari_07
  [Tkinter] Tkinter optionmenu child menu position showing 0,0 thatguy14 2 4,670 Jun-15-2018, 10:42 AM
Last Post: thatguy14
  [Tkinter] need help in optionMenu using tkinter Lizard 4 6,809 Nov-07-2017, 03:08 PM
Last Post: Lizard

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020