-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.py
49 lines (40 loc) · 1.71 KB
/
about.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env python
#
# Lara Maia <[email protected]> 2019
#
# The RGBFanControl is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# The RGBFanControl is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#
from gi.repository import Gtk
from typing import Union
# noinspection PyUnusedLocal
class AboutWindow(Gtk.AboutDialog):
def __init__(self, *, parent_window: Union[Gtk.Window, Gtk.ApplicationWindow]) -> None:
super().__init__(self, transient_for=parent_window, modal=True)
self.set_program_name("RGBFanControl")
self.set_authors([
"Lara Maia",
])
# self.set_translator_credits(__credits__)
self.set_website("https://github.com/ShyPixie/RGBFanControl")
self.set_website_label("Git Repository")
# self.set_version(__version__)
self.set_copyright("Lara Maia (C) 2019 - [email protected]")
self.set_comments("Made with Love <3")
self.set_license_type(Gtk.License.GPL_3_0)
# logo = GdkPixbuf.Pixbuf.new_from_file(<image>)
# self.set_logo(logo)
self.connect("response", self.on_dialog_response)
self.present()
def on_dialog_response(self, dialog: Gtk.Dialog, response_id: int) -> None:
self.destroy()