From 85349c86dab481d4ae3531aa8596383738a2ab32 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Mon, 4 Apr 2016 14:00:50 +0300 Subject: [PATCH] tray translation fix, new icon --- src/images/icon.ico | Bin 1150 -> 41662 bytes src/main.py | 8 +++++++- src/menu.py | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/images/icon.ico b/src/images/icon.ico index c8940940fc57b8c594b5ae9354d82c36089c5dbf..b0333f58f31d5d06c0d13e781c60368fc8a22db4 100755 GIT binary patch literal 41662 zcmeHQ3se==8Xl@u*}AP>-tOwI?zMH3#78K-wFDoTWTsdL6vaRgHLZN4fGGm0pk`X8 zh%Fy06+}y-3ze6si=`phm9D8_nxg1cAO#e8bLM{k;mmOyX3oqxGv{z#xPH&*h$FeMAshm7{lF7}@ zWxOBuz7rA#*$w#xQVr2VSS8Z^AKew*rz9>1xTgte$btj`o7)K^OL4X4{*pr_U4{=E zJ^=6C0I7pmjj4B@a38R|-xBP_?#)Qg=nftZY0U-2=T7wl`KAH95f>Cq>td}Yil2hdmiMk|>RIw60=iz7;&c z;xD|<$VaM~_*LaejE`rYdZu~Jhii6Ux^#*9BRZ``uh;92A3q*8DPq#M;Jw9Gd6S4Y zADBKU#967^$j4@hxK(jMaSHk9;oXCci;XM1cJ10Yt$7f}hw;GFmq)(*Gt!}Yp1}fq zz6Yj%SBk&zK6~@gr&k{~HzzkMfZnoa9dRl?{QCN_byw?bUN<;? zlb0l~@_EFk(Sq`=Rwphxw#*Pk;A%Srpcfo;`Z97@Mz^!cR+o8h=cUp86%~Mw_R8v~wclgXWat zV&c9ethB^lEUr_hPKAyhHTp+z;TfMB^|g=>DyKoCf+~MI{+rF)kj%`?d4B!;&f2kV zP#fb^?FV7g&$nL_)@^L6v#sKsW@o{rgbBG%3#h%4HesHiZcq{Sl;p2MW zim(uCKRApqw|FrpCnrt}Q)~UGZoI$p{bY-Ud*nhDa`!G&95GO9f$I!t;e?M4!aET>z zTdl3Fx}p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s S6+&Khi-o?QHLdy^g!}?-g*t8k diff --git a/src/main.py b/src/main.py index aaab597..59223f1 100644 --- a/src/main.py +++ b/src/main.py @@ -96,7 +96,13 @@ class Toxygen(object): # tray icon self.tray = QtGui.QSystemTrayIcon(QtGui.QIcon(curr_directory() + '/images/icon.png')) self.tray.setObjectName('tray') - m = QtGui.QMenu() + + class Menu(QtGui.QMenu): + def languageChange(self, *args, **kwargs): + self.actions()[0].setText(QtGui.QApplication.translate('tray', 'Open Toxygen', None, QtGui.QApplication.UnicodeUTF8)) + self.actions()[1].setText(QtGui.QApplication.translate('tray', 'Exit', None, QtGui.QApplication.UnicodeUTF8)) + + m = Menu() show = m.addAction(QtGui.QApplication.translate('tray', 'Open Toxygen', None, QtGui.QApplication.UnicodeUTF8)) exit = m.addAction(QtGui.QApplication.translate('tray', 'Exit', None, QtGui.QApplication.UnicodeUTF8)) diff --git a/src/menu.py b/src/menu.py index 5bec3f3..c7848bb 100644 --- a/src/menu.py +++ b/src/menu.py @@ -374,7 +374,7 @@ class InterfaceSettings(CenteredWidget): self.label.setFont(font) self.label.setObjectName("label") self.themeSelect = QtGui.QComboBox(self) - self.themeSelect.setGeometry(QtCore.QRect(30, 60, 161, 31)) + self.themeSelect.setGeometry(QtCore.QRect(30, 60, 160, 30)) self.themeSelect.setObjectName("themeSelect") list_of_themes = ['default', 'windows', 'gtk', 'cde', 'plastique', 'motif'] self.themeSelect.addItems(list_of_themes) @@ -383,7 +383,7 @@ class InterfaceSettings(CenteredWidget): index = list_of_themes.index(theme) self.themeSelect.setCurrentIndex(index) self.lang_choose = QtGui.QComboBox(self) - self.lang_choose.setGeometry(QtCore.QRect(30, 150, 211, 27)) + self.lang_choose.setGeometry(QtCore.QRect(30, 150, 160, 30)) self.lang_choose.setObjectName("comboBox") supported = Settings.supported_languages() for elem in supported: