eric6/E5Gui/E5TextEditSearchWidget.py

changeset 7628
f904d0eef264
parent 7533
88261c96484b
child 7642
72721823d453
child 7780
41420f82c0ac
equal deleted inserted replaced
7626:7f643d41464e 7628:f904d0eef264
183 183
184 @param textedit reference to the edit widget to be attached 184 @param textedit reference to the edit widget to be attached
185 @type QTextEdit, QWebEngineView or QWebView 185 @type QTextEdit, QWebEngineView or QWebView
186 @param editType type of the attached edit widget 186 @param editType type of the attached edit widget
187 @type str (one of "QTextEdit", "QWebEngineView" or "QWebView") 187 @type str (one of "QTextEdit", "QWebEngineView" or "QWebView")
188 """ 188 @exception ValueError raised to indicate a bad parameter value
189 assert editType in ["QTextEdit", "QWebEngineView", "QWebView"] 189 """
190 if editType not in ["QTextEdit", "QWebEngineView", "QWebView"]:
191 raise ValueError("Bad value for 'editType' parameter.")
190 192
191 self.__textedit = textedit 193 self.__textedit = textedit
192 self.__texteditType = editType 194 self.__texteditType = editType
193 195
194 self.wordCheckBox.setVisible(editType == "QTextEdit") 196 self.wordCheckBox.setVisible(editType == "QTextEdit")

eric ide

mercurial