-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathaboutdialog.py
executable file
·55 lines (44 loc) · 1.71 KB
/
aboutdialog.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
# !/usr/local/bin/python3.6
# MIT licensed
# Copyright (c) 2018 White Russsian
# Github: <https://github.com/Eve-PySpy/PySpy>**********************
'''The About Dialog for PySpy's GUI. OnAboutBox() gets called by the GUI
module.'''
# **********************************************************************
import logging
import time
import wx
import wx.adv
import __main__
import config
# cSpell Checker - Correct Words****************************************
# // cSpell:words russsian, wxpython, ccp's
# // cSpell:words
# **********************************************************************
Logger = logging.getLogger(__name__)
# Example call: Logger.info("Something badhappened", exc_info=True) ****
def showAboutBox(parent, event=None):
# __main__.app.PySpy.ToggleWindowStyle(wx.STAY_ON_TOP)
description = """
PySpy is an EVE Online character intel tool
using CCP's ESI API and a daily updated proprietary
database containing key statistics on approximately
2.4 million pilots.
If you enjoy PySpy and want to show your appreciation
to its author, you are welcome to send an ISK donation
in-game to White Russsian (with 3 "s").
Thank you."""
try:
with open(config.resource_path('LICENSE.txt'), 'r') as lic_file:
license = lic_file.read()
except:
license = "PySpy is licensed under the MIT License."
info = wx.adv.AboutDialogInfo()
info.SetIcon(wx.Icon(config.ABOUT_ICON, wx.BITMAP_TYPE_PNG))
info.SetName("PySpy")
info.SetVersion(config.CURRENT_VER)
info.SetDescription(description)
info.SetCopyright('(C) 2018 White Russsian')
info.SetWebSite('https://github.com/Eve-PySpy/PySpy')
info.SetLicence(license)
wx.adv.AboutBox(info)