E5Gui/E5SqueezeLabels.py

branch
5_3_x
changeset 2764
1d85539ac41a
parent 2302
f29e9405c851
child 2791
a9577f248f04
child 2990
583beaf0b4b8
child 3163
9f50365a0870
equal deleted inserted replaced
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

eric ide

mercurial