Skip to content

Commit

Permalink
make up
Browse files Browse the repository at this point in the history
  • Loading branch information
clesssalvein committed Jan 21, 2023
1 parent ff5af2e commit 447f3cc
Show file tree
Hide file tree
Showing 10 changed files with 74 additions and 8 deletions.
38 changes: 33 additions & 5 deletions GlpiClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ def __init__(self):

def initUI(self):
# create About win
self.setFixedSize(300, 240)
self.setFixedSize(400, 300)
self.center()
self.setWindowTitle(_("About..."))
self.setWindowIcon(QIcon('img\ico.png'))
Expand All @@ -1227,13 +1227,38 @@ def initUI(self):
self.setWindowFlags(Qt.CustomizeWindowHint | Qt.WindowCloseButtonHint )

self.glpiPic = QLabel(self)
glpiPicPixmap = QPixmap('img\ico.png')
glpiPicPixmap = QPixmap('img\ico64x64.png')
self.glpiPic.setPixmap(glpiPicPixmap)

# label app
self.aboutAppHeadLabel = QLabel(self)
self.aboutAppHeadLabel.setFont(QFont("Decorative", 11))
self.aboutAppHeadLabel.setText(appName + " " + appVersion)
self.aboutAppHeadLabel.setFont(QFont("Decorative", 8))
self.aboutAppHeadLabel.setTextInteractionFlags(Qt.TextSelectableByMouse)
self.aboutAppHeadLabel.setText(appName + " " + "v" + appVersion)

# author contact
self.aboutAuthorContact = QLabel(self)
self.aboutAuthorContact.setFont(QFont("Decorative", 8))
self.aboutAuthorContact.setAlignment(Qt.AlignCenter)
self.aboutAuthorContact.setTextInteractionFlags(Qt.TextSelectableByMouse)
self.aboutAuthorContact.setText(_("Author Contact") + ":" +
'\n' + authorEmail)

# app homepage
self.aboutAppHomepage = QLabel(self)
self.aboutAppHomepage.setFont(QFont("Decorative", 8))
self.aboutAppHomepage.setAlignment(Qt.AlignCenter)
self.aboutAppHomepage.setTextInteractionFlags(Qt.TextSelectableByMouse)
self.aboutAppHomepage.setText(_("App Homepage") + ":" +
'\n' + appHomepage)

# app translation
self.aboutAppTranslations = QLabel(self)
self.aboutAppTranslations.setFont(QFont("Decorative", 8))
self.aboutAppTranslations.setAlignment(Qt.AlignCenter)
self.aboutAppTranslations.setTextInteractionFlags(Qt.TextSelectableByMouse)
self.aboutAppTranslations.setText(_("Interface Translations") + ":" +
'\n' + "Italian - trisosamu")

# OK-exit button create
self.aboutOkButton = QPushButton(_("OK"), self)
Expand All @@ -1245,7 +1270,10 @@ def initUI(self):
gridAbout = QGridLayout()
gridAbout.addWidget(self.glpiPic, 0, 0, 1, 1, alignment=Qt.AlignCenter)
gridAbout.addWidget(self.aboutAppHeadLabel, 1, 0, 1, 1, alignment=Qt.AlignCenter)
gridAbout.addWidget(self.aboutOkButton, 2, 0, 1, 1, alignment=Qt.AlignCenter)
gridAbout.addWidget(self.aboutAuthorContact, 2, 0, 1, 1, alignment=Qt.AlignCenter)
gridAbout.addWidget(self.aboutAppHomepage, 3, 0, 1, 1, alignment=Qt.AlignCenter)
gridAbout.addWidget(self.aboutAppTranslations, 4, 0, 1, 1, alignment=Qt.AlignCenter)
gridAbout.addWidget(self.aboutOkButton, 5, 0, 1, 1, alignment=Qt.AlignCenter)
self.setLayout(gridAbout)

self.show()
Expand Down
2 changes: 1 addition & 1 deletion app.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.303
0.304
Binary file added img/ico64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lang/i18n/en/LC_MESSAGES/glpiClient.mo
Binary file not shown.
12 changes: 12 additions & 0 deletions lang/i18n/en/LC_MESSAGES/glpiClient.po
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,15 @@ msgstr "This window will close automatically..."

msgid "App autoupdate"
msgstr "App autoupdate"

msgid "Hide app window to tray at startup"
msgstr "Hide app window to tray at startup"

msgid "Author Contact"
msgstr "Author Contact"

msgid "App Homepage"
msgstr "App Homepage"

msgid "Interface Translations"
msgstr "Interface Translations"
Binary file modified lang/i18n/it/LC_MESSAGES/glpiClient.mo
Binary file not shown.
12 changes: 12 additions & 0 deletions lang/i18n/it/LC_MESSAGES/glpiClient.po
Original file line number Diff line number Diff line change
Expand Up @@ -313,3 +313,15 @@ msgstr "Questa finestra si chiuderà automaticamente..."

msgid "App autoupdate"
msgstr "Aggiornamento automatico app"

msgid "Hide app window to tray at startup"
msgstr "Nascondi la finestra del programma nella barra delle applicazioni all'avvio"

msgid "Author Contact"
msgstr "Autore Contatto"

msgid "App Homepage"
msgstr "Sito web del programma"

msgid "Interface Translations"
msgstr "Traduzione dell'interfaccia"
Binary file modified lang/i18n/ru/LC_MESSAGES/glpiClient.mo
Binary file not shown.
12 changes: 12 additions & 0 deletions lang/i18n/ru/LC_MESSAGES/glpiClient.po
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,15 @@ msgstr "Это окно закроется автоматически..."

msgid "App autoupdate"
msgstr "Автообновление программы"

msgid "Hide app window to tray at startup"
msgstr "Скрыть окно программы в системном лотке при запуске"

msgid "Author Contact"
msgstr "Связаться с автором"

msgid "App Homepage"
msgstr "Страница приложения"

msgid "Interface Translations"
msgstr "Перевод интерфейса"
6 changes: 4 additions & 2 deletions vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@

# VARS

appName = "Glpi Client"
appName = "GlpiClient"
appExeFile = "GlpiClient.exe"
appDirName = "GlpiClient"
appVersion = "0.303"
appVersion = "0.304"
authorEmail = "clesssalvein@gmail.com"
appHomepage = "https://github.com/clesssalvein/GlpiClient"
sessionToken = None

# userPass enc, NOT FOR WinXP
Expand Down

0 comments on commit 447f3cc

Please sign in to comment.