src/eric7/Preferences/ConfigurationPages/CooperationPage.py

branch
eric7
changeset 10428
a071d4065202
parent 10069
435cc5875135
child 10439
21c28b0f9e41
equal deleted inserted replaced
10427:3733e2b23cf7 10428:a071d4065202
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

eric ide

mercurial