diff --git a/pyglance/glance/gui_controller.py b/pyglance/glance/gui_controller.py index ae6fc7d57681f2311f144a9520a5e71028dc749e..dacb984987f94a15ecd60ffaca8bc686e3f157ed 100644 --- a/pyglance/glance/gui_controller.py +++ b/pyglance/glance/gui_controller.py @@ -50,6 +50,11 @@ class GlanceGUIController (object) : self.model = gui_model.GlanceGUIModel() self.stats = gui_stats.GlanceGUIStats(self.model) self.figs = gui_figs.GlanceGUIFigures(self.model) + + # how about an icon? + from pkg_resources import resource_filename; + from PyQt5.QtGui import QIcon + self.qtApp.setWindowIcon(QIcon(resource_filename(__name__, "pass.gif"))) # set things up to talk to each other self.model.registerErrorHandler(self) diff --git a/pyglance/glance/gui_view.py b/pyglance/glance/gui_view.py index 786821ca59ece4b388ba0513d6e299e7b90acae0..f765c69be46b57b7ba6441759c5d4cc0de9d4f99 100644 --- a/pyglance/glance/gui_view.py +++ b/pyglance/glance/gui_view.py @@ -14,7 +14,7 @@ from PyQt5.QtWidgets import QWidget, QTabWidget, QGridLayout, QLabel, QLineEdit, QComboBox, QPushButton, QSizePolicy, QHeaderView, \ QCheckBox, QTableWidget, QFileDialog, QMessageBox, \ QTextEdit, QTableView -from PyQt5.QtGui import QIcon, QDoubleValidator, QValidator +from PyQt5.QtGui import QDoubleValidator, QValidator from PyQt5.QtCore import QAbstractTableModel, Qt from functools import partial @@ -110,10 +110,6 @@ class GlanceGUIView (QWidget) : # set our title with the version string self.setWindowTitle(versionString) - # to make Dave happy, give it an icon - from pkg_resources import resource_filename - self.setWindowIcon(QIcon(resource_filename(__name__, "pass.gif"))) - # a place to hang onto our file specific widgets self.widgetInfo = { }