2523:139f182b72f6 | 2525:8b507a9a2d40 |
---|---|
4 # | 4 # |
5 | 5 |
6 """ | 6 """ |
7 Module implementing a dialog for editing the IRC server configuration. | 7 Module implementing a dialog for editing the IRC server configuration. |
8 """ | 8 """ |
9 | |
10 from __future__ import unicode_literals # __IGNORE_WARNING__ | |
9 | 11 |
10 from PyQt4.QtCore import pyqtSlot | 12 from PyQt4.QtCore import pyqtSlot |
11 from PyQt4.QtGui import QDialog, QDialogButtonBox | 13 from PyQt4.QtGui import QDialog, QDialogButtonBox |
12 | 14 |
13 from .Ui_IrcServerEditDialog import Ui_IrcServerEditDialog | 15 from .Ui_IrcServerEditDialog import Ui_IrcServerEditDialog |
22 Constructor | 24 Constructor |
23 | 25 |
24 @param server reference to the IRC server object (IrcServer) | 26 @param server reference to the IRC server object (IrcServer) |
25 @param parent reference to the parent widget (QWidget) | 27 @param parent reference to the parent widget (QWidget) |
26 """ | 28 """ |
27 super().__init__(parent) | 29 super(IrcServerEditDialog, self).__init__(parent) |
28 self.setupUi(self) | 30 self.setupUi(self) |
29 | 31 |
30 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) | 32 self.__okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
31 | 33 |
32 if server: | 34 if server: |