gdctl: Add __str__(self) for Dimension too
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4302>
This commit is contained in:
parent
414156d0a1
commit
c9c7768418
@ -26,6 +26,9 @@ class Dimension(NamedTuple):
|
|||||||
width: int
|
width: int
|
||||||
height: int
|
height: int
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return f"{self.width}x{self.height}"
|
||||||
|
|
||||||
|
|
||||||
class Position(NamedTuple):
|
class Position(NamedTuple):
|
||||||
x: int | None
|
x: int | None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user