Plugins/PluginAbout.py

changeset 1112
8a7d1b9d18db
parent 945
8cd4d08fa9f6
child 1131
7781e396c903
equal deleted inserted replaced
1109:9552b5e16a07 1112:8a7d1b9d18db
7 Module implementing the About plugin. 7 Module implementing the About plugin.
8 """ 8 """
9 9
10 from PyQt4.QtCore import QObject 10 from PyQt4.QtCore import QObject
11 11
12 from UI.Info import * 12 import UI.Info
13 import UI.PixmapCache 13 import UI.PixmapCache
14 14
15 from E5Gui.E5Action import E5Action 15 from E5Gui.E5Action import E5Action
16 from E5Gui import E5MessageBox 16 from E5Gui import E5MessageBox
17 17
72 """ 72 """
73 Private method to initialize the actions. 73 Private method to initialize the actions.
74 """ 74 """
75 acts = [] 75 acts = []
76 76
77 self.aboutAct = E5Action(self.trUtf8('About {0}').format(Program), 77 self.aboutAct = E5Action(self.trUtf8('About {0}').format(UI.Info.Program),
78 UI.PixmapCache.getIcon("helpAbout.png"), 78 UI.PixmapCache.getIcon("helpAbout.png"),
79 self.trUtf8('&About {0}').format(Program), 79 self.trUtf8('&About {0}').format(UI.Info.Program),
80 0, 0, self, 'about_eric') 80 0, 0, self, 'about_eric')
81 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) 81 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software'))
82 self.aboutAct.setWhatsThis(self.trUtf8( 82 self.aboutAct.setWhatsThis(self.trUtf8(
83 """<b>About {0}</b>""" 83 """<b>About {0}</b>"""
84 """<p>Display some information about this software.</p>""" 84 """<p>Display some information about this software.</p>"""
85 ).format(Program)) 85 ).format(UI.Info.Program))
86 self.aboutAct.triggered[()].connect(self.__about) 86 self.aboutAct.triggered[()].connect(self.__about)
87 acts.append(self.aboutAct) 87 acts.append(self.aboutAct)
88 88
89 self.aboutQtAct = E5Action(self.trUtf8('About Qt'), 89 self.aboutQtAct = E5Action(self.trUtf8('About Qt'),
90 UI.PixmapCache.getIcon("helpAboutQt.png"), 90 UI.PixmapCache.getIcon("helpAboutQt.png"),
123 123
124 def __aboutQt(self): 124 def __aboutQt(self):
125 """ 125 """
126 Private slot to handle the About Qt dialog. 126 Private slot to handle the About Qt dialog.
127 """ 127 """
128 E5MessageBox.aboutQt(self.__ui, Program) 128 E5MessageBox.aboutQt(self.__ui, UI.Info.Program)

eric ide

mercurial