diff --git a/graxpert/ui/right_menu.py b/graxpert/ui/right_menu.py index 2b516db..cba8021 100644 --- a/graxpert/ui/right_menu.py +++ b/graxpert/ui/right_menu.py @@ -1,4 +1,5 @@ import tkinter as tk +import webbrowser from tkinter import messagebox import customtkinter as ctk @@ -83,6 +84,32 @@ def create_and_place_children(self): HelpText(self, text=_("Mouse wheel: Zoom")).grid(**self.default_grid()) HelpText(self, rows=3, text=_("Ctrl+Z/Y: Undo/Redo sample point")).grid(**self.default_grid()) + CTkLabel(self, text=_("Licenses"), font=self.heading_font).grid(column=0, row=self.nrow(), pady=pady, sticky=tk.N) + + def callback(url): + webbrowser.open_new(url) + + row = self.nrow() + HelpText(self, text=_("GraXpert is licensed under GPL-3:")).grid(column=0, row=row, padx=padx, pady=pady, sticky=tk.W) + url_link_1 = "https://raw.githubusercontent.com/Steffenhir/GraXpert/main/License.md" + url_label_1 = CTkLabel(self, text="", text_color="dodger blue") + url_label_1.grid(column=0, row=row, padx=padx, sticky=tk.E) + url_label_1.bind("", lambda e: callback(url_link_1)) + + row = self.nrow() + HelpText(self, rows=2, text=_("Background Extraction AI models are licensed under CC BY-NC-SA:")).grid(column=0, row=row, padx=padx, pady=pady, sticky=tk.W) + url_link_2 = "https://raw.githubusercontent.com/Steffenhir/GraXpert/main/licenses/BGE-Model-LICENSE.html" + url_label_2 = CTkLabel(self, text="", text_color="dodger blue") + url_label_2.grid(column=0, row=row, padx=padx, sticky=tk.E) + url_label_2.bind("", lambda e: callback(url_link_2)) + + row = self.nrow() + HelpText(self, rows=2, text=_("Denoising AI models are licensed under CC BY-NC-SA:")).grid(column=0, row=row, padx=padx, pady=pady, sticky=tk.W) + url_link_3 = "https://raw.githubusercontent.com/Steffenhir/GraXpert/main/licenses/Denoise-Model-LICENSE.html" + url_label_3 = CTkLabel(self, text="", text_color="dodger blue") + url_label_3.grid(column=0, row=row, padx=padx, sticky=tk.E) + url_label_3.bind("", lambda e: callback(url_link_3)) + def setup_layout(self): self.columnconfigure(0, weight=1) self.rowconfigure(0, weight=1) diff --git a/licenses/BGE-Model-LICENSE.html b/licenses/BGE-Model-LICENSE.html new file mode 100644 index 0000000..6c5a42f --- /dev/null +++ b/licenses/BGE-Model-LICENSE.html @@ -0,0 +1,45 @@ + + + + +

The provided GraXpert Background Extraction Models by GraXpert Development Team are licensed under CC BY-NC-SA 4.0

+

We would like to thank the following people who contributed to this model by submitting training images:

+
    +
  • Alistair M.
  • +
  • Axel L.
  • +
  • Bernd L.
  • +
  • Christian B.
  • +
  • Christian <chges100> G.
  • +
  • Claus-Peter S.
  • +
  • David S.
  • +
  • Elias <TheAmazingLooser> S.
  • +
  • Francis M.
  • +
  • Frank <frasax> S.
  • +
  • Georg I.
  • +
  • Henry <Minusman> L.
  • +
  • Holger R.
  • +
  • Iris F.
  • +
  • Jürgen <jt> T.
  • +
  • Kurt K.
  • +
  • Marc <PapaBear_Marc> B.
  • +
  • Mark W.
  • +
  • Moritz <MoMa> M.
  • +
  • Niccolo C.
  • +
  • Nicolas P.
  • +
  • Norbert L.
  • +
  • Olaf H.
  • +
  • Rafael S.
  • +
  • Reinhard G.
  • +
  • Riccardo A.
  • +
  • Roger B.
  • +
  • Sherwin C.
  • +
  • Steffen <_steffens_> S.
  • +
  • Steffen <Steffen> H.
  • +
  • Stephen R.
  • +
  • Steven D.
  • +
  • Thomas P.
  • +
  • Thomas G.
  • +
  • Ulrike <astronomy_ffm> K.
  • +
+ + \ No newline at end of file diff --git a/licenses/Denoise-Model-LICENSE.html b/licenses/Denoise-Model-LICENSE.html new file mode 100644 index 0000000..35733a3 --- /dev/null +++ b/licenses/Denoise-Model-LICENSE.html @@ -0,0 +1,24 @@ + + + + +

The provided GraXpert Denoising Models by GraXpert Development Team are licensed under CC BY-NC-SA 4.0

+

We would like to thank the following people who contributed to this model by submitting training images:

+
    +
  • Florian <Florian>
  • +
  • Holger <Holger> R.
  • +
  • Julian <Julian>
  • +
  • Jürgen <Jenafan>
  • +
  • Kurt <ku_kro> K.
  • +
  • Marc <PapaBear_Marc> B.
  • +
  • Matthias <AstroMatz>
  • +
  • Moritz <MoMa> M.
  • +
  • Rafael <Rafael> S.
  • +
  • Ronny <Ronny>
  • +
  • Sabine <Sabine>
  • +
  • Sebastian <PurpleCloud>
  • +
  • Steffen <_steffens_ > S.
  • +
  • Steffen <Steffen> H.
  • +
+ + \ No newline at end of file