(self, *args, **kwargs)
| 179 | """ |
| 180 | |
| 181 | def __init__(self, *args, **kwargs): |
| 182 | super().__init__(*args, **kwargs) |
| 183 | self.setReadOnly(True) |
| 184 | # Set background color the same as for disabled window. |
| 185 | p = self.palette() |
| 186 | p.setColor(QPalette.Base, p.color(QPalette.Disabled, QPalette.Base)) |
| 187 | self.setPalette(p) |
| 188 | |
| 189 | |
| 190 | class PushButtonMinimumWidth(QPushButton): |