Python Forum
[Tkinter] Tkinter optionmenu child menu position showing 0,0
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Tkinter optionmenu child menu position showing 0,0
#3
(Jun-15-2018, 02:00 AM)woooee Wrote:
Quote:However, when I try and use the menu widget winfo_rootx or winfo_x they both just show position 0 regardless of where the menu actually is. See example code:
What exactly were you expecting winfo... winfo.children displays a list of the children. You posibly want winfo.x and winfo.y

I am not sure I understand you because in the method test_func I print 3 statements, one of which is winfo_children, the other two of which should be the position of the menu widget associated with the optionmenu widget.
Reply


Messages In This Thread
RE: Tkinter optionmenu child menu position showing 0,0 - by thatguy14 - Jun-15-2018, 10:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems trying to position images with Tkinter emont 3 798 Dec-12-2023, 07:20 AM
Last Post: menator01
  [Tkinter] tkinter menubar not showing on mac ventura taras 1 2,106 Dec-17-2022, 02:44 PM
Last Post: Yoriz
  [PyQt] QWidgetAction of QFrame not showing in menu malonn 4 2,030 Sep-22-2022, 10:49 PM
Last Post: malonn
  tkinter showing image in button rwahdan 3 5,662 Jun-16-2021, 06:08 AM
Last Post: Yoriz
  Tkinter reduce OptionMenu height euras 2 4,684 May-25-2021, 09:14 PM
Last Post: euras
  tkinter text widget word wrap position chrisdb 6 7,603 Mar-18-2021, 03:55 PM
Last Post: chrisdb
  [Tkinter] tkinter.Menu – How to make text-variable? Sir 3 5,673 Mar-10-2021, 04:21 PM
Last Post: Sir
  tkinter python button position problem Nick_tkinter 3 3,585 Jan-31-2021, 05:15 AM
Last Post: deanhystad
  [Tkinter] Tkinter Textbox only showing one character Xylianth 1 2,194 Jan-29-2021, 02:59 AM
Last Post: Xylianth
  Tkinter menu font size -method to change tonycat 2 7,877 Oct-11-2020, 02:43 AM
Last Post: tonycat

Forum Jump:

User Panel Messages

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