forked from nachifur/MulimgViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.py
executable file
·65 lines (51 loc) · 2.28 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import wx
from about_gui import AboutGui
from utils import get_resource_path
class About (AboutGui):
def __init__(self, parent, version, update=False, new_version=None):
super().__init__(parent)
self.about_txt.SetEditable(False)
self.about_txt.BeginFontSize(12)
self.about_txt.BeginBold()
if update:
self.about_txt.BeginTextColour(wx.Colour(255,0,0,255))
self.about_txt.WriteText(f"A new version ({new_version}) is available!!!\n")
self.about_txt.EndTextColour()
self.about_txt.WriteText("Software: ")
self.about_txt.EndBold()
self.about_txt.WriteText("MulimgViewer\n")
self.about_txt.BeginBold()
self.about_txt.WriteText("Maintainer: ")
self.about_txt.EndBold()
self.about_txt.WriteText("nachifur\n")
self.about_txt.BeginBold()
self.about_txt.WriteText("Mail: ")
self.about_txt.EndBold()
self.about_txt.WriteText("1476879092@qq.com\n")
self.about_txt.BeginBold()
self.about_txt.WriteText("Version: ")
self.about_txt.EndBold()
self.about_txt.WriteText(str(version)+"\n")
self.about_txt.BeginBold()
self.about_txt.WriteText("Platform: ")
self.about_txt.EndBold()
self.about_txt.WriteText("python3.6\n")
self.about_txt.BeginBold()
self.about_txt.WriteText("Architecture: ")
self.about_txt.EndBold()
self.about_txt.WriteText("amd64\n")
self.about_txt.BeginBold()
self.about_txt.WriteText("Image format: ")
self.about_txt.EndBold()
self.about_txt.WriteText("png, jpg, bmp, tif\n")
self.about_txt.BeginBold()
self.about_txt.WriteText("Description: ")
self.about_txt.EndBold()
self.about_txt.WriteText(
"MulimgViewer is a multi-image viewer that can open multiple images in one interface, which is convenient for image comparison and image stitching.\n")
self.about_txt.EndFontSize()
self.icon = wx.Icon(get_resource_path(
'mulimgviewer.ico'), wx.BITMAP_TYPE_ICO)
self.SetIcon(self.icon)
if update:
self.m_hyperlink3.SetBackgroundColour(wx.Colour(255, 0, 0, 255))