python - Can a Tkinter button have children? -
i have following code create button in tkinter:
button = button(self.parent_frame, width=100, height=100) frame = frame(button) label = label(frame, text="this button") frame.pack(fill=both, expand=1) label.pack(fill=both, expand=1)
when hover mouse on parts of button, button rapidly resizes width of window , initial size. why happen? tkinter button not allowed have children?
note: not planning on using frame inside button, asking hypothetical purposes. instead of answers suggesting workarounds, prefer explanations why happens.
theoretically, yes, button can have children. suspect behavior undefined platforms use native widgets (ie: osx , windows).
Comments
Post a Comment