Jun-12-2019, 09:46 AM
Here is the code. On my PC running Windows7 Professional the controls overlap. They don't overlap on Windows10
The inconsistency might be related to the following:
https://interactivepython.org/runestone/...dgets.html
The inconsistency might be related to the following:
https://interactivepython.org/runestone/...dgets.html
import tkinter from tkinter import ttk from tkinter import * from tkinter.ttk import * from tkinter import messagebox root = tkinter.Tk() root.geometry("470x225") root.title("My First GUI") newCanvas = Canvas(root,width=460,height=250) newCanvas.create_line(240,20,240,205,fill="black") sacol = ttk.Combobox( root, values=[1,2,3,4,5], state='readonly', width = 2) sacol.current(0) sarow = ttk.Combobox( root, values=[1,2,3,4,5], state='readonly', width = 2) sarow.current(0) elementButton = tkinter.Button(root,text = "Calculate", relief=GROOVE) salbl = Label(root,text = "Press 1") elbl = Label(root, text = "Press 2") sacolTxt = Label(root, text = "Number of aaaaaaaaa columns") sarowTxt = Label(root, text = "Number of aaaaaaaaa rows") sattxt = Label(root, text = "Number of aaaaaaaaa =") elttxt = Label(root, text = "Number of aaaaaaaa =") d1Txt = Label(root, text="") d2Txt = Label(root, text="") newCanvas.place(x=0,y=0) sacolTxt.place(x=10,y=10) sacol.place(x=180,y=10) sarowTxt.place(x=10,y=35) sarow.place(x=180,y=35) sattxt.place(x=10,y=60) salbl.place(x=143,y=60) elttxt.place(x=10,y=85) elbl.place(x=132,y=85) elementButton.place(x=10,y=110) d1Txt.place(x=370,y=110) d2Txt.place(x=370,y=135) root.mainloop()