Skip to content

Commit

Permalink
add license information to help menu
Browse files Browse the repository at this point in the history
  • Loading branch information
schmelly committed Mar 29, 2024
1 parent a097de7 commit f3600a9
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
27 changes: 27 additions & 0 deletions graxpert/ui/right_menu.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import tkinter as tk
import webbrowser
from tkinter import messagebox

import customtkinter as ctk
Expand Down Expand Up @@ -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="<Link>", text_color="dodger blue")
url_label_1.grid(column=0, row=row, padx=padx, sticky=tk.E)
url_label_1.bind("<Button-1>", 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="<Link>", text_color="dodger blue")
url_label_2.grid(column=0, row=row, padx=padx, sticky=tk.E)
url_label_2.bind("<Button-1>", 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="<Link>", text_color="dodger blue")
url_label_3.grid(column=0, row=row, padx=padx, sticky=tk.E)
url_label_3.bind("<Button-1>", lambda e: callback(url_link_3))

def setup_layout(self):
self.columnconfigure(0, weight=1)
self.rowconfigure(0, weight=1)
Expand Down
45 changes: 45 additions & 0 deletions licenses/BGE-Model-LICENSE.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<html>
<head>
</head>
<body>
<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><span property="dct:title">The provided GraXpert Background Extraction Models</span> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://github.com/Steffenhir/GraXpert/">GraXpert Development Team</a> are licensed under <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-SA 4.0<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1"></a></p>
<p>We would like to thank the following people who contributed to this model by submitting training images:</p>
<ul>
<li>Alistair M.</li>
<li>Axel L.</li>
<li>Bernd L.</li>
<li>Christian B.</li>
<li>Christian &lt;chges100&gt; G.</li>
<li>Claus-Peter S.</li>
<li>David S.</li>
<li>Elias &lt;TheAmazingLooser&gt; S.</li>
<li>Francis M.</li>
<li>Frank &lt;frasax&gt; S.</li>
<li>Georg I.</li>
<li>Henry &lt;Minusman&gt; L.</li>
<li>Holger R.</li>
<li>Iris F.</li>
<li>Jürgen &lt;jt&gt; T.</li>
<li>Kurt K.</li>
<li>Marc &lt;PapaBear_Marc&gt; B.</li>
<li>Mark W.</li>
<li>Moritz &lt;MoMa&gt; M.</li>
<li>Niccolo C.</li>
<li>Nicolas P.</li>
<li>Norbert L.</li>
<li>Olaf H.</li>
<li>Rafael S.</li>
<li>Reinhard G.</li>
<li>Riccardo A.</li>
<li>Roger B.</li>
<li>Sherwin C.</li>
<li>Steffen &lt;_steffens_&gt; S.</li>
<li>Steffen &lt;Steffen&gt; H.</li>
<li>Stephen R.</li>
<li>Steven D.</li>
<li>Thomas P.</li>
<li>Thomas G.</li>
<li>Ulrike &lt;astronomy_ffm&gt; K.</li>
</ul>
</body>
</html>
24 changes: 24 additions & 0 deletions licenses/Denoise-Model-LICENSE.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<html>
<head>
</head>
<body>
<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><span property="dct:title">The provided GraXpert Denoising Models</span> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://github.com/Steffenhir/GraXpert/">GraXpert Development Team</a> are licensed under <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-SA 4.0<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1"></a></p>
<p>We would like to thank the following people who contributed to this model by submitting training images:</p>
<ul>
<li>Florian &lt;Florian&gt; </li>
<li>Holger &lt;Holger&gt; R.</li>
<li>Julian &lt;Julian&gt; </li>
<li>Jürgen &lt;Jenafan&gt; </li>
<li>Kurt &lt;ku_kro&gt; K.</li>
<li>Marc &lt;PapaBear_Marc&gt; B.</li>
<li>Matthias &lt;AstroMatz&gt; </li>
<li>Moritz &lt;MoMa&gt; M.</li>
<li>Rafael &lt;Rafael&gt; S.</li>
<li>Ronny &lt;Ronny&gt; </li>
<li>Sabine &lt;Sabine&gt; </li>
<li>Sebastian &lt;PurpleCloud&gt; </li>
<li>Steffen &lt;_steffens_ &gt; S.</li>
<li>Steffen &lt;Steffen&gt; H.</li>
</ul>
</body>
</html>

0 comments on commit f3600a9

Please sign in to comment.