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