(self, *args, **kwargs)
| 163 | """ |
| 164 | |
| 165 | def __init__(self, *args, **kwargs): |
| 166 | super().__init__(*args, **kwargs) |
| 167 | self.setReadOnly(True) |
| 168 | # Set background color the same as for disabled window. |
| 169 | p = self.palette() |
| 170 | p.setColor(QPalette.Base, p.color(QPalette.Disabled, QPalette.Base)) |
| 171 | self.setPalette(p) |
| 172 | |
| 173 | |
| 174 | class TextEditReadOnly(QTextEdit): |