SqlBrowser/SqlBrowser.py

changeset 3345
071afe8be2a1
parent 3190
a9a94491c4fd
child 3484
645c12de6b0c
equal deleted inserted replaced
3343:f7a6d271bb40 3345:071afe8be2a1
104 self.addConnectionAct.setWhatsThis(self.tr( 104 self.addConnectionAct.setWhatsThis(self.tr(
105 """<b>Add Connection</b>""" 105 """<b>Add Connection</b>"""
106 """<p>This opens a dialog to add a new database""" 106 """<p>This opens a dialog to add a new database"""
107 """ connection.</p>""" 107 """ connection.</p>"""
108 )) 108 ))
109 self.addConnectionAct.triggered[()].connect( 109 self.addConnectionAct.triggered.connect(
110 self.__browser.addConnectionByDialog) 110 self.__browser.addConnectionByDialog)
111 self.__actions.append(self.addConnectionAct) 111 self.__actions.append(self.addConnectionAct)
112 112
113 self.exitAct = E5Action( 113 self.exitAct = E5Action(
114 self.tr('Quit'), 114 self.tr('Quit'),
119 self.exitAct.setStatusTip(self.tr('Quit the SQL browser')) 119 self.exitAct.setStatusTip(self.tr('Quit the SQL browser'))
120 self.exitAct.setWhatsThis(self.tr( 120 self.exitAct.setWhatsThis(self.tr(
121 """<b>Quit</b>""" 121 """<b>Quit</b>"""
122 """<p>Quit the SQL browser.</p>""" 122 """<p>Quit the SQL browser.</p>"""
123 )) 123 ))
124 self.exitAct.triggered[()].connect(qApp.closeAllWindows) 124 self.exitAct.triggered.connect(qApp.closeAllWindows)
125 125
126 self.aboutAct = E5Action( 126 self.aboutAct = E5Action(
127 self.tr('About'), 127 self.tr('About'),
128 self.tr('&About'), 128 self.tr('&About'),
129 0, 0, self, 'sql_help_about') 129 0, 0, self, 'sql_help_about')
131 'Display information about this software')) 131 'Display information about this software'))
132 self.aboutAct.setWhatsThis(self.tr( 132 self.aboutAct.setWhatsThis(self.tr(
133 """<b>About</b>""" 133 """<b>About</b>"""
134 """<p>Display some information about this software.</p>""" 134 """<p>Display some information about this software.</p>"""
135 )) 135 ))
136 self.aboutAct.triggered[()].connect(self.__about) 136 self.aboutAct.triggered.connect(self.__about)
137 self.__actions.append(self.aboutAct) 137 self.__actions.append(self.aboutAct)
138 138
139 self.aboutQtAct = E5Action( 139 self.aboutQtAct = E5Action(
140 self.tr('About Qt'), 140 self.tr('About Qt'),
141 self.tr('About &Qt'), 141 self.tr('About &Qt'),
144 self.tr('Display information about the Qt toolkit')) 144 self.tr('Display information about the Qt toolkit'))
145 self.aboutQtAct.setWhatsThis(self.tr( 145 self.aboutQtAct.setWhatsThis(self.tr(
146 """<b>About Qt</b>""" 146 """<b>About Qt</b>"""
147 """<p>Display some information about the Qt toolkit.</p>""" 147 """<p>Display some information about the Qt toolkit.</p>"""
148 )) 148 ))
149 self.aboutQtAct.triggered[()].connect(self.__aboutQt) 149 self.aboutQtAct.triggered.connect(self.__aboutQt)
150 self.__actions.append(self.aboutQtAct) 150 self.__actions.append(self.aboutQtAct)
151 151
152 def __initMenus(self): 152 def __initMenus(self):
153 """ 153 """
154 Private method to create the menus. 154 Private method to create the menus.

eric ide

mercurial