Coverage for pyWebLayout/style/alignment.py: 91%

11 statements  

« prev     ^ index     » next       coverage.py v7.11.2, created at 2025-11-12 12:02 +0000

1""" 

2Alignment options for the pyWebLayout library. 

3 

4This module provides alignment-related functionality. 

5""" 

6 

7from enum import Enum 

8 

9 

10class Alignment(Enum): 

11 """Text and box alignment options""" 

12 # Horizontal alignment 

13 LEFT = "left" 

14 RIGHT = "right" 

15 CENTER = "center" 

16 JUSTIFY = "justify" 

17 

18 # Vertical alignment 

19 TOP = "top" 

20 MIDDLE = "middle" 

21 BOTTOM = "bottom" 

22 

23 def __str__(self): 

24 """Return the string value of the alignment.""" 

25 return self.value