diff --git a/SourceCode/fPtPDist.py b/SourceCode/fPtPDist.py index 9d2a63c..2bb9770 100644 --- a/SourceCode/fPtPDist.py +++ b/SourceCode/fPtPDist.py @@ -35,6 +35,9 @@ def calculate(): graph(x1,x2,y1,y2) pass +def close_app(): + root.quit() + root.destroy() root = Tk() root.title('From Point to Point Distance') @@ -79,7 +82,7 @@ calc = Button(root,text = 'Calculate') calc.config(command = calculate) calc.place(x = 50, y = 250, width = 100) -root.mainloop() +root.protocol('WM_DELETE_WINDOW',close_app) -@Unbewohnte +root.mainloop() diff --git a/SourceCode/icon.png b/SourceCode/icon.png new file mode 100644 index 0000000..01ef7f5 Binary files /dev/null and b/SourceCode/icon.png differ diff --git a/fPtPDist.exe b/fPtPDist.exe index d154e18..b8c14b0 100644 Binary files a/fPtPDist.exe and b/fPtPDist.exe differ