81 @pyqtSlot(str) |
81 @pyqtSlot(str) |
82 def on_bannedUserEdit_textChanged(self, txt): |
82 def on_bannedUserEdit_textChanged(self, txt): |
83 """ |
83 """ |
84 Private slot to handle the user entering a banned user. |
84 Private slot to handle the user entering a banned user. |
85 |
85 |
86 @param txt text entered by the user (string) |
86 @param txt text entered by the user |
|
87 @type str |
87 """ |
88 """ |
88 self.addBannedUserButton.setEnabled( |
89 self.addBannedUserButton.setEnabled( |
89 self.__bannedUserValidator.validate(txt, len(txt))[0] |
90 self.__bannedUserValidator.validate(txt, len(txt))[0] |
90 == QValidator.State.Acceptable |
91 == QValidator.State.Acceptable |
91 ) |
92 ) |
113 def create(dlg): # noqa: U100 |
114 def create(dlg): # noqa: U100 |
114 """ |
115 """ |
115 Module function to create the configuration page. |
116 Module function to create the configuration page. |
116 |
117 |
117 @param dlg reference to the configuration dialog |
118 @param dlg reference to the configuration dialog |
118 @return reference to the instantiated page (ConfigurationPageBase) |
119 @type ConfigurationDialog |
|
120 @return reference to the instantiated page |
|
121 @rtype ConfigurationPageBase |
119 """ |
122 """ |
120 page = CooperationPage() |
123 page = CooperationPage() |
121 return page |
124 return page |