247 side=E5LineEdit.RightSide): |
247 side=E5LineEdit.RightSide): |
248 """ |
248 """ |
249 Constructor |
249 Constructor |
250 |
250 |
251 @param parent reference to the parent widget (QWidget) |
251 @param parent reference to the parent widget (QWidget) |
252 @keyparam inactiveText text to be shown on inactivity (string) |
252 @param inactiveText text to be shown on inactivity (string) |
253 @keyparam side side the clear button should be shown at |
253 @param side side the clear button should be shown at |
254 (E5LineEdit.RightSide, E5LineEdit.LeftSide) |
254 (E5LineEdit.RightSide, E5LineEdit.LeftSide) |
255 @exception ValueError raised to indicate a bad parameter value |
255 @exception ValueError raised to indicate a bad parameter value |
256 """ |
256 """ |
257 if side not in [E5LineEdit.RightSide, E5LineEdit.LeftSide]: |
257 if side not in [E5LineEdit.RightSide, E5LineEdit.LeftSide]: |
258 raise ValueError("Bad value for 'side' parameter.") |
258 raise ValueError("Bad value for 'side' parameter.") |