@@ -160,6 +160,7 @@ class LabelBase(Group):
160
160
161
161
Subclasses should implement ``_set_text``, ``_set_font``, and ``_set_line_spacing`` to
162
162
have the correct behavior for that type of label.
163
+
163
164
:param Font font: A font class that has ``get_bounding_box`` and ``get_glyph``.
164
165
Must include a capital M for measuring character size.
165
166
:param str text: Text to display
@@ -189,8 +190,7 @@ class LabelBase(Group):
189
190
tab character
190
191
:param str label_direction: string defining the label text orientation. There are 5
191
192
configurations possibles ``LTR``-Left-To-Right ``RTL``-Right-To-Left
192
- ``TTB``-Top-To-Bottom ``UPR``-Upwards ``DWR``-Downwards``DWR``-Downwards and
193
- ``UPD``-Upside-Down only avalaible for bitmap_label. It defaults to ``LTR``"""
193
+ ``TTB``-Top-To-Bottom ``UPR``-Upwards ``DWR``-Downwards. It defaults to ``LTR``"""
194
194
195
195
# pylint: disable=unused-argument, too-many-instance-attributes, too-many-locals, too-many-arguments
196
196
def __init__ (
@@ -235,7 +235,7 @@ def __init__(
235
235
236
236
self ._text = text
237
237
238
- if label_direction not in ["LTR" , "RTL" , "UPR" , "DWR" , "TTB" , "UPD" ]:
238
+ if label_direction not in ["LTR" , "RTL" , "UPR" , "DWR" , "TTB" ]:
239
239
raise RuntimeError ("Please provide a valid text direction" )
240
240
self ._label_direction = label_direction
241
241
@@ -410,6 +410,6 @@ def _set_label_direction(self, new_label_direction: str) -> None:
410
410
@label_direction .setter
411
411
def label_direction (self , new_label_direction : str ) -> None :
412
412
"""Set the text direction of the label"""
413
- if new_label_direction not in ["LTR" , "RTL" , "UPR" , "DWR" , "TTB" , "UPD" ]:
413
+ if new_label_direction not in ["LTR" , "RTL" , "UPR" , "DWR" , "TTB" ]:
414
414
raise RuntimeError ("Please provide a valid text direction" )
415
415
self ._set_label_direction (new_label_direction )
0 commit comments