mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-22 06:11:37 +03:00
Note difference between tool.name and tool.get_name()
This commit is contained in:
parent
9932a84554
commit
e579b005c0
4
paint.py
4
paint.py
@ -250,7 +250,9 @@ class Tool(Enum):
|
||||
}[self]
|
||||
|
||||
def get_name(self) -> str:
|
||||
"""Get the name of this tool."""
|
||||
"""Get the localized name for this tool.
|
||||
|
||||
Not to be confused with tool.name, which is an identifier."""
|
||||
return {
|
||||
Tool.free_form_select: _("Free-Form Select"),
|
||||
Tool.select: _("Select"),
|
||||
|
Loading…
Reference in New Issue
Block a user