File: pygadgets-products/unzipped/_PyCalc/Calculator/_PriorCodePP4E/calc0emb.py

from tkinter import *
from calc0 import CalcGui                       # add parent, no master calls

class Outer:
    def __init__(self, parent):                               # embed GUI
        Label(parent, text='Calc Attachment').pack()          # side=top
        CalcGui(parent)                                       # add calc frame
        Button(parent, text='Quit', command=parent.quit).pack()

root = Tk()
Outer(root)
root.mainloop()



[Home page] Books Code Blog Python Author Train Find ©M.Lutz