Indicate application bitness in both about dialog and in page title

This commit is contained in:
Manuel Cortez 2021-12-31 18:46:00 -06:00
parent 211673a821
commit d671854453
No known key found for this signature in database
GPG Key ID: 262CC30FA01B5CBF
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
import platform
arch = platform.architecture()[0]
name = "Socializer"
author = "MCV Software"
authorEmail = "info@mcvsoftware.com"

View File

@ -76,7 +76,7 @@ class mainWindow(wx.Frame):
self.SetAcceleratorTable(self.accel_tbl)
def __init__(self):
super(mainWindow, self).__init__(parent=None, id=wx.NewId(), title=application.name)
super(mainWindow, self).__init__(parent=None, id=wx.NewId(), title="{} ({})".format(application.name, application.arch))
self.Maximize()
self.makeMenu()
self.panel = wx.Panel(self)
@ -138,7 +138,7 @@ class mainWindow(wx.Frame):
self.tb.AdvanceSelection(forward)
def about_dialog(self, *args, **kwargs):
version = application.version
version = "{} ({})".format(application.version, application.arch)
info = wx.adv.AboutDialogInfo()
info.SetName(application.name)
info.SetVersion(version)