This must be very simple, how to Place a button by x and y coordinates, not using a frame/grid.
My test code:
button.place(x=100, y=200)Shown in examples not working (for me).
My test code:
from tkinter import * from tkinter import messagebox, ttk root = Tk() root.title(" Place button ") root.geometry( "300x300" ) #(HxV) label = Label( root , text = " " ) label.pack() label1 = Label( root , text = "Set Value " ) label1.place(x=35, y=140) combo = ttk.Combobox(values=["300","250","225","200","175","150","140","130","125"]) combo.bind("<<ComboboxSelected>>") #combo.pack(padx=10,pady=10) combo.place(x=100, y=140) button = Button( root , text = "Save changes").pack() #button.place(x=100, y=200) #AttributeError: 'NoneType' object has no attribute 'place' root.mainloop()I found this:
Quote:Don't mix layout managers (pack, grid, place) on the same parent widget. If you use pack or grid on a widget that contains the button, place might not work as expected.Really vague, so place works with some widgets and not others...