As in the title, in the constructor of the child class I'm trying to set a predetermined width and height, but when a create the widget those attributes are no taken into account.
Relevant code:
import tkinter as tk
from tkinter import ttk
class ZombieSelector(tk.LabelFrame):
def __init__(self,
master,
options: list=[],
max: int=10,
cnf={},
**kwargs) -> None:
kwargs = cnf or kwargs
dropDown = ttk.Combobox(master, state="readonly", values=options, width=15)
dropDown.bind("<<ComboboxSelected>>", self.__addZombie)
super().__init__(master, labelwidget=dropDown, width=184, height=max*20+42, **kwargs)
ttk.Label(self, text="Type").grid(row=0, column=0)
ttk.Label(self, text="Alive").grid(row=0, column=1)
ttk.Label(self, text="Dead").grid(row=0, column=2)