Show More
@@ -187,9 +187,8 b' class MainWindow(QtGui.QMainWindow):' | |||
|
187 | 187 | box.addButton(closeall, QtGui.QMessageBox.YesRole) |
|
188 | 188 | box.setDefaultButton(closeall) |
|
189 | 189 | box.setEscapeButton(cancel) |
|
190 |
pixmap = QtGui.QPixmap( |
|
|
191 | scaledpixmap = pixmap.scaledToWidth(64,mode=QtCore.Qt.SmoothTransformation) | |
|
192 | box.setIconPixmap(scaledpixmap) | |
|
190 | pixmap = QtGui.QPixmap(self._app.icon.pixmap(QtCore.QSize(64,64))) | |
|
191 | box.setIconPixmap(pixmap) | |
|
193 | 192 | reply = box.exec_() |
|
194 | 193 | if reply == 1: # close All |
|
195 | 194 | for slave in slave_tabs: |
@@ -882,8 +881,8 b' class IPythonQtConsoleApp(BaseIPythonApplication):' | |||
|
882 | 881 | |
|
883 | 882 | base_path = os.path.abspath(os.path.dirname(__file__)) |
|
884 | 883 | icon_path = os.path.join(base_path, 'resources', 'icon', 'IPythonConsole.svg') |
|
885 | icon = QtGui.QIcon(icon_path) | |
|
886 | QtGui.QApplication.setWindowIcon(icon) | |
|
884 | self.app.icon = QtGui.QIcon(icon_path) | |
|
885 | QtGui.QApplication.setWindowIcon(self.app.icon) | |
|
887 | 886 | |
|
888 | 887 | local_kernel = (not self.existing) or self.ip in LOCAL_IPS |
|
889 | 888 | self.widget = self.widget_factory(config=self.config, |
General Comments 0
You need to be logged in to leave comments.
Login now