it can also be embedded in container class--example - attaches the simple calculator' widget packagealong with extrasto common parent example - pp \lang\calculator\calc emb py from tkinter import from calc import calcgui add parentno master calls class outerdef __init__(selfparent)embed gui label(parenttext='calc attachment'pack(side=top calcgui(parentadd calc frame button(parenttext='quit'command=parent quitpack(root tk(outer(rootroot mainloop(figure - shows the result of running both of these scripts from different command lines both have distinct input field at the top this worksbut to see more practical application of such reuse techniqueswe need to make the underlying calculator more practicaltoo figure - the calc script' object attached and extended text and language