Search code examples
pythonwidgettkinterframesparents

Can you change a widget's parent in python tkinter?


Is there any way to change a widget's (ttk.frame in this case) parent? I can't find any keywords to use in the widgets .config. Is this not possible in python tkinter? What I'd like functionally is to take my current frame in my tkk.notebook widget, and when I double click the tab, to have everything in the frame of the tab, move to it's own separate TopLevel window. This way the user can have a visual reference to that tab while working on another tab. I couldn't think of any other way to have this happen without the frame functionality I'm asking about. Perhaps if anyone can circumvent this issue, I won't need to worry about parent widget capabilities.

Cheers, Chris


Solution

  • An old post by Fredrik Lundh (the Tkinter author) suggests that it isn't possible to change a widget's parent.