1frame.py
from tkinter import *
import keyboard
def einfuegen():
text = "Vielen Dank für das angenehme Telefonat"
keyboard.write(text)
root = Tk()
frame = Frame(root)
frame.pack()
bottomframe = Frame(root)
bottomframe.pack(side=BOTTOM)
redbutton = Button(frame, text="Telefonat", fg="red", command=einfuegen)
redbutton.pack(side=LEFT)
greenbutton = Button(frame, text="Kontakt", fg="brown")
greenbutton.pack(side=LEFT)
bluebutton = Button(frame, text="Blue", fg="blue")
bluebutton.pack(side=LEFT)
blackbutton = Button(bottomframe, text="Black", fg="black")
blackbutton.pack(side=BOTTOM)
root.mainloop()