Изменена иконка приложения при запуске метода

master-3.5 3.5.0_alpha13
parent 58fef6ecaa
commit 4ac3a0f4b3

@ -56,8 +56,11 @@ class SelectedMethodWgt(QtGui.QWidget):
layout.addWidget(self.MethodWidget)
QtGui.QIcon.setThemeName('Calculate')
self.setWindowIcon(QtGui.QIcon \
('/usr/share/pixmaps/calculate-console-online.svg'))
self.setWindowIcon(
QtGui.QIcon.fromTheme('calculate-%s'%self.method.replace("_","-")))
QtGui.QApplication.setWindowIcon(
QtGui.QIcon.fromTheme('calculate-%s'%self.method.replace("_","-")))
conf_path = self.VarsGui.Get('cl_gui_config_path')
homePath = self.VarsGui.Get('ur_home_path')
self.user_config = conf_path.replace("~",homePath)

Loading…
Cancel
Save