From d34c090fd60463e5f303a5af628f8acc4b2b0009 Mon Sep 17 00:00:00 2001
From: Wojciech Wojnowski <wojciech.wojnowski@pg.edu.pl>
Date: Thu, 17 Feb 2022 09:42:14 +0000
Subject: [PATCH] Update main.py -> added citation info to the 'about' tab

---
 main.py | 26 +++++++++++++++++++-------
 1 file changed, 19 insertions(+), 7 deletions(-)

diff --git a/main.py b/main.py
index e2a6fdb..459cb9b 100644
--- a/main.py
+++ b/main.py
@@ -158,13 +158,23 @@ def call_info_popup():
     win_frame.pack()
     win.iconbitmap('AGREEPrep_icon.ico')
     win.wm_title('About and citation info')
-    title = ttk.Label(win_frame, text='Some title', font=('TkDefaultFont', 10, 'bold'), justify='left')
-    title.grid(column=0, row=0, padx=8, pady=8, sticky='w')
-    text = ttk.Label(win_frame, text='About info, license, citation info (to be filled in after publication) \n'
-                                     'The most recent version of the code is available at '
-                                     'https://git.pg.edu.pl/p174235/agreeprep', wraplength=280, justify='left')
-    text.grid(column=0, row=1, padx=8, pady=8, sticky='w')
-
+    text = ttk.Label(win_frame, text='If you use AGREEprep, please cite:', wraplength=280, justify='left')
+    text.grid(column=0, row=0, padx=8, pady=8, sticky='w')
+    text2 = tk.Text(win_frame, width=50, height=5, wrap='word', bg=colors['background'])
+    citation = 'W.Wojnowski, M.Tobiszewski, F.Pena-Pereira, E.Psillakis, AGREEprep - Analytical Greenness Metric' \
+               ' for Sample Preparation, TrAC Trends in Analytical Chemistry (2022), doi.org/10.1016/j.trac.2022.116553'
+    text2.grid(column=0, row=1, padx=8, pady=8, sticky='w')
+    text2.insert(tk.END, citation)
+    text3 = ttk.Label(win_frame, text='Most recent version of the source code can be found at:', wraplength=320, justify='left')
+    text3.grid(column=0, row=2, padx=8, pady=8, sticky='w')
+    text4 = tk.Text(win_frame, width=50, height=1, wrap='word', bg=colors['background'])
+    source_link = 'git.pg.edu.pl/p174235/agreeprep'
+    text4.grid(column=0, row=3, padx=8, pady=8, sticky='w')
+    text4.insert(tk.END, source_link)
+    text5 = ttk.Label(win_frame, text='Copyright (c) 2022 W.Wojnowski, M.Tobiszewski, F.Pena-Pereira, E.Psillakis, '
+                                      'available under the MIT License', wraplength=380,
+                      justify='left')
+    text5.grid(column=0, row=4, padx=8, pady=8, sticky='w')
 
 def save_image():
     ftypes = [('PNG file', '.png'), ('SVG file', '.svg'), ('All files', '*')]
@@ -923,3 +933,5 @@ def main():
 
 main()
 
+
+
-- 
GitLab