import os
import tkinter as Tk


def form_menu(menu_frame):
    file_btn = Tk.Button(text='New', master = menu_frame)
    file_btn.pack(side=Tk.LEFT)
    file_btn = Tk.Button(text='Open', master = menu_frame)
    file_btn.pack(side=Tk.LEFT)
    file_btn = Tk.Button(text='Save', master = menu_frame)
    file_btn.pack(side=Tk.LEFT)
    file_btn = Tk.Button(text='Save As', master = menu_frame)
    file_btn.pack(side=Tk.LEFT)
    file_btn = Tk.Button(text='Save Graph', master = menu_frame)
    file_btn.pack(side=Tk.LEFT)
    sets_btn = Tk.Button(text='Settings', master = menu_frame)
    sets_btn.pack(side=Tk.LEFT)
    sets_btn = Tk.Button(text='Help', master = menu_frame)
    sets_btn.pack(side=Tk.LEFT)
    sets_btn = Tk.Button(text='About', master = menu_frame)
    sets_btn.pack(side=Tk.LEFT)


def form_quick_acc(quick_acc_frame):
    file_btn = Tk.Button(text='+', master = quick_acc_frame)
    file_btn.pack(side=Tk.LEFT)


def form_graph(graph_frame):
    graph_area = Tk.Label(master=graph_frame, text='Graph Area')
    graph_area.pack()


def form_calc(calc_frame):
    calc_text_area = Tk.Text(master=calc_frame)
    calc_text_area.pack()
    calc_text_area.bind('<Return>', on_calc_enter)


def on_calc_enter(event):
    text = event.widget.get('1.0', Tk.INSERT).split('\n')[-1]
    result = ''
    return_value = ''
    try:
        result = eval(text)
        if str(result) != str(text):
            event.widget.insert(Tk.INSERT, '\n' + str(result))
            return_value = 'break'
    except (NameError, ValueError, SyntaxError) as e:
        print(e)
    return return_value


home_window = Tk.Tk()
home_window.geometry('600x700')

calc_frames = {
    'menu': Tk.Frame(width=80),
    'quick': Tk.Frame(width=80),
    'graph': Tk.Frame(width=80),
    'calc': Tk.Frame(width=80),
}

form_menu(calc_frames['menu'])
calc_frames['menu'].place(x=0, y=0, width=600, height=25)
form_quick_acc(calc_frames['quick'])
calc_frames['quick'].place(x=0, y=25, width=600, height=25)
form_graph(calc_frames['graph'])
calc_frames['graph'].place(x=0, y=50, width=600, height=300)
form_calc(calc_frames['calc'])
calc_frames['calc'].place(x=0, y=350, width=600, height=350)

home_window.mainloop()

@@ -1345,24 +1345,26 @@
 lt = ''%0D%0A   
+ #
  return_valu
@@ -1523,16 +1523,18 @@
         
+ #
  return_
@@ -1626,16 +1626,18 @@
 (e)%0D%0A   
+ #
  return 

Rollback returning break - regression on Linux