Add missing docstrings (both identical for now)

This commit is contained in:
Isaiah Odhner 2023-04-28 21:11:14 -04:00
parent 67015ae1ca
commit dbf6b78659

View File

@ -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)