Skip to content

Commit f79d582

Browse files
author
Mairo Rufus
committed
Report the correct version number and year #52
1 parent 1861540 commit f79d582

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

atbswp/gui.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,11 @@ def on_about(self, event):
308308
"""About dialog."""
309309
info = wx.adv.AboutDialogInfo()
310310
info.Name = "atbswp"
311-
info.Version = "v0.1"
312-
info.Copyright = ("(C) 2019 Mairo Paul Rufus <[email protected]>\n")
311+
info.Version = f"{settings.VERSION}"
312+
info.Copyright = (f"©{settings.YEAR} Mairo Rufus <[email protected]>\n")
313313
info.Description = "Record mouse and keyboard actions and reproduce them identically at will"
314314
info.WebSite = ("https://github.com/atbswp", "Project homepage")
315-
info.Developers = ["Mairo Paul Rufus"]
315+
info.Developers = ["Mairo Rufus"]
316316
info.License = "GNU General Public License V3"
317317
info.Icon = self.icon
318318
wx.adv.AboutBox(info)

atbswp/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@
2020
import configparser
2121
import os
2222
import platform
23+
from datetime import date
2324

2425

2526
CONFIG = configparser.ConfigParser()
27+
VERSION = "0.2"
28+
YEAR = date.today().strftime('%Y')
2629

2730

2831
# Check the location of the configuration file, default to the home directory

0 commit comments

Comments
 (0)