I have three problems!
Problem 1: I am creating a label inside a panel and its size can be changed. I want to keep it fixed. It's possible?
If you move the cursor over the upper and lower limits of the label, you will see that the cursor changes to the screen adjustment format.
Problem 2: My button is taking up the entire dimension of the panel. How to resize it without creating an empty label below?
Problem 3: The scales also occupy the entire panel horizontally. Is it possible to change its size?
from tkinter import*
import tkinter
root = Tk()
root.geometry('900x500')
var_a = DoubleVar()
var_b = DoubleVar()
############# CREATING PANELS #####################
#----------- General Panel --------------#
panel_1 = PanedWindow(bd=4,orient = HORIZONTAL ,relief="raised")#, bg = "red")
panel_1.pack(fill=BOTH, expand=1)
#----------- Fist Panel --------------#
panel_3 = PanedWindow(panel_1, orient = VERTICAL, relief="raised")#, bg = "yellow")
panel_1.add(panel_3, minsize=200) #inserting on panel_1
#----------- Second Panel --------------#
panel_2 = PanedWindow(panel_1, orient = VERTICAL, relief="raised")#, bg = "blue")
panel_1.add(panel_2, minsize=800) #inserting on panel_1
label2=Label(panel_3,text="Pass the cursor below me")
panel_3.add(label2)
textbox2=Scale(panel_3,orient=HORIZONTAL,variable = var_a)
panel_3.add(textbox2)
label4=Label(panel_3,text="Pass the cursor above me too")
panel_3.add(label4)
textbox4=Scale(panel_3,orient=HORIZONTAL,variable = var_b)
panel_3.add(textbox4)
def bla():
pass
button1 = Button(panel_3,text="Why I have this size?", height = 1, width = 1, command= bla())
panel_3.add(button1)
tkinter.mainloop()