frame_01.py

#!/usr/bin/python3
# -*- coding: utf-8 -*-

from tkinter import *
from tkinter import messagebox

###########################
def senden():
    messagebox.showinfo('Senden','May be later!')

def verbinde():
    messagebox.showinfo('Verbinde','May be later!')

def info():
    messagebox.showinfo('Info','Frame-Demo (1 Frame)!')

def ende():
    root.destroy()

###########################
root = Tk()
root.title('Frame-Demo (1 Frame)')

fpopup = Frame(root,width=500)
fpopup.pack(expand=YES, fill=BOTH)

textfenster = Text(fpopup,width=90)
textfenster.pack(fill=BOTH,expand=YES)

eingabe = Entry(fpopup,width=60)
eingabe.pack(side=LEFT,fill=BOTH,expand=YES)

but1 = Button(fpopup,text='Senden', command = senden)
but1.pack(side = LEFT,expand=NO)

but2 = Button(fpopup,text='Verbinden', command = verbinde)
but2.pack(side = LEFT,expand=NO)

but3 = Button(fpopup,text='Info', command = info)
but3.pack(side = LEFT,expand=NO)

but4 = Button(fpopup,text='Beenden', command = ende)
but4.pack(side = LEFT,expand=NO)

root.mainloop()

Fenster schließen