Hi barry76
Please note the adviced instructions of Larz60+. Try to present executable code snippets. If possible do not mix pack with grid.
For further studies i have placed here following script:
Please note the adviced instructions of Larz60+. Try to present executable code snippets. If possible do not mix pack with grid.
For further studies i have placed here following script:
import tkinter as tk APP_XPOS = 0 APP_YPOS = 0 APP_WIDTH = 1350 APP_HEIGHT = 750 APP_BG_COLOR = 'powder blue' TEXT_BG = 'white' # powder blue', class MyClass(tk.Frame): def __init__(self, master): super().__init__(master, bg=APP_BG_COLOR) tk.Label(self, text='Reference System', bg='powder blue', fg='black', font=('arial', 30, 'bold') ).pack(pady=10) entry_frame = tk.Frame(self, bg=APP_BG_COLOR) entry_frame.pack(padx=10, pady=10) tk.Label(entry_frame, text="Accuracy: ", bg='powder blue', font=('arial', 12, 'bold') ).pack(side='left', padx=4) self.text = tk.StringVar(master, "Text") tk.Label(entry_frame, textvariable=self.text, bg=TEXT_BG, font=('arial', 12, 'bold'), width=30 ).pack(side='left') tk.Label(entry_frame, text="No of Jobs: ", bg='powder blue', font=('arial', 12, 'bold') ).pack(side='left', padx=4) self.text1 = tk.StringVar(master, "Text1") tk.Label(entry_frame, textvariable=self.text1, bg=TEXT_BG, font=('arial', 12, 'bold'), width=30 ).pack(side='left') tk.Button(self, text="Display", command=self.loopCap ).pack() image_frame = tk.Frame(self, bg='powder blue') image_frame.pack(fill="both", expand=True, padx=10, pady=10) self.label = tk.Label(image_frame, bg='green') #powder blue') self.label.pack(side='left', fill='both', expand=True, padx=5, pady=5) self.label1 = tk.Label(image_frame, bg='yellow') #'powder blue') self.label1.pack(side='left', fill='both', expand=True, padx=5, pady=5) print("Load") def loopCap(self): print("Loop Cap") root = tk.Tk() root.geometry('{}x{}+{}+{}'.format(APP_WIDTH, APP_HEIGHT, APP_XPOS, APP_YPOS)) root.config(bg=APP_BG_COLOR) MyClass(root).pack(fill='both', expand=True) root.mainloop()wuf :-)