4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to edit channel data. |
7 Module implementing a dialog to edit channel data. |
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_IrcChannelEditDialog import Ui_IrcChannelEditDialog |
15 from .Ui_IrcChannelEditDialog import Ui_IrcChannelEditDialog |
27 be joined automatically (boolean) |
29 be joined automatically (boolean) |
28 @param edit flag indicating an edit of an existing |
30 @param edit flag indicating an edit of an existing |
29 channel (boolean) |
31 channel (boolean) |
30 @param parent reference to the parent widget (QWidget) |
32 @param parent reference to the parent widget (QWidget) |
31 """ |
33 """ |
32 super().__init__(parent) |
34 super(IrcChannelEditDialog, self).__init__(parent) |
33 self.setupUi(self) |
35 self.setupUi(self) |
34 |
36 |
35 self.nameEdit.setText(name) |
37 self.nameEdit.setText(name) |
36 self.keyEdit.setText(key) |
38 self.keyEdit.setText(key) |
37 self.autoJoinCheckBox.setChecked(autoJoin) |
39 self.autoJoinCheckBox.setChecked(autoJoin) |