-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathabout_dialog.py
65 lines (61 loc) · 2.49 KB
/
about_dialog.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env python3
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, GdkPixbuf
import os
import re
def create(v, APP_PATH):
license = _('''This program 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.
This program 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 can find the full text of the license under
http://www.gnu.org/licenses/gpl.txt''')
about = Gtk.AboutDialog()
about.set_icon_from_file(os.path.join(APP_PATH, "icon.png"))
about.set_program_name("Gis Weather")
about.set_version(v)
about.set_copyright("Copyright © 2013 - 2022 Alexander Koltsov")
about.set_comments(_('Weather widget'))
about.set_website("http://sourceforge.net/projects/gis-weather/")
about.set_logo(GdkPixbuf.Pixbuf.new_from_file_at_size(os.path.join(APP_PATH, "icon.png"), 128, 128))
about.set_license(license)
about.set_wrap_license(False)
about.set_authors(["Alexander Koltsov <[email protected]>",
" "+_('Help and Ideas')+":",
"Karbunkul",
"Haron Prime",
"Yuriy_Y",
"https://www.transifex.com/user/profile/yahoe.001/",
"Istvan Petres\n",
" autostart helper",
"by Jonas Wagner\n"])
about.set_artists([" "+_('Backgrounds')+":",
"LightEasyShadow, LightWhiteShadow, DarkEasyShadow, DarkWithFlare",
"by wfedin\n",
"Grey",
"by DeadMetaler\n",
" "+_('Icons')+":",
"colorful, flat_colorful, light, flat_white, dark, flat_black",
"by ~MerlinTheRed",
"http://merlinthered.deviantart.com/art/plain-weather-icons-157162192\n",
"Sticker",
"by KorToIk",
"http://kortoik.deviantart.com/art/Sticker-Weather-Icons-78827487\n",
"Simple",
"by LavAna",
"http://lavana.deviantart.com/art/Simple-Weather-Icons-23626765\n",
"Sketchy",
"by AzureSol",
"http://azuresol.deviantart.com/art/Sketchy-Weather-Icons-135079063\n",
"VClouds",
"by VClouds",
"http://vclouds.deviantart.com/gallery/#/d2ynulp\n"
])
about.set_translator_credits(_("translator-credits"))
#about.set_documenters("")
return about