mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-30 10:12:01 +03:00
Add missing docstrings (both identical for now)
This commit is contained in:
parent
67015ae1ca
commit
dbf6b78659
2
paint.py
2
paint.py
@ -1998,9 +1998,11 @@ class PaintApp(App[None]):
|
|||||||
self.warning_message_box(_("Paint"), "Not implemented.", "ok")
|
self.warning_message_box(_("Paint"), "Not implemented.", "ok")
|
||||||
|
|
||||||
def action_set_as_wallpaper_tiled(self) -> None:
|
def action_set_as_wallpaper_tiled(self) -> None:
|
||||||
|
"""Set the image as the wallpaper."""
|
||||||
# TODO: Differentiate between tiled and centered.
|
# TODO: Differentiate between tiled and centered.
|
||||||
self.action_set_as_wallpaper_centered()
|
self.action_set_as_wallpaper_centered()
|
||||||
def action_set_as_wallpaper_centered(self) -> None:
|
def action_set_as_wallpaper_centered(self) -> None:
|
||||||
|
"""Set the image as the wallpaper."""
|
||||||
try:
|
try:
|
||||||
dir = os.path.join(get_config_dir("textual-paint"), "wallpaper")
|
dir = os.path.join(get_config_dir("textual-paint"), "wallpaper")
|
||||||
os.makedirs(dir, exist_ok=True)
|
os.makedirs(dir, exist_ok=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user