178
178
"""Set set_up_button as default button when the page is shown."""
179
179
# This method should stays here because if we move it to initializePage
180
180
# set_up_button won't take the proper style for hover and press
181
182
self.set_up_button.setDefault(True)
185
187
self.connect(QtGui.QApplication.instance(),
186
188
QtCore.SIGNAL("focusChanged(QWidget*, QWidget*)"),
189
191
def hideEvent(self, event):
190
192
"""Disconnect the focusChanged signal when the page change."""
192
195
self.disconnect(QtGui.QApplication.instance(),
193
196
QtCore.SIGNAL("focusChanged(QWidget*, QWidget*)"),