2762:423835fb1204 | 2764:1d85539ac41a |
---|---|
13 from Utilities import compactPath | 13 from Utilities import compactPath |
14 | 14 |
15 | 15 |
16 class E5SqueezeLabel(QLabel): | 16 class E5SqueezeLabel(QLabel): |
17 """ | 17 """ |
18 Class implementing a label that squeezes its contents to fit it's size. | 18 Class implementing a label that squeezes its contents to fit its size. |
19 """ | 19 """ |
20 def __init__(self, parent=None): | 20 def __init__(self, parent=None): |
21 """ | 21 """ |
22 Constructor | 22 Constructor |
23 | 23 |
52 super().setText(self.__text) | 52 super().setText(self.__text) |
53 | 53 |
54 | 54 |
55 class E5SqueezeLabelPath(QLabel): | 55 class E5SqueezeLabelPath(QLabel): |
56 """ | 56 """ |
57 Class implementing a label showing a file path compacted to fit it's size. | 57 Class implementing a label showing a file path compacted to fit its size. |
58 """ | 58 """ |
59 def __init__(self, parent=None): | 59 def __init__(self, parent=None): |
60 """ | 60 """ |
61 Constructor | 61 Constructor |
62 | 62 |