BugFixed: AttributeError: 'PosixPath'

This commit is contained in:
Dimitris Zlatanidis 2022-12-31 09:02:21 +02:00
parent d1bac57c91
commit 4f6f90eb85
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
4.4.4 - 31/12/2002
BugFixed:
- AttributeError: 'PosixPath' object has no attribute 'startswith'
4.4.3 - 30/12/2022 4.4.3 - 30/12/2022
Updated: Updated:
- Switch to pathlib library - Switch to pathlib library

View file

@ -51,4 +51,4 @@ class DialogBox:
def textbox(self, text: Union[str, Path], height: int, width: int): def textbox(self, text: Union[str, Path], height: int, width: int):
""" Display a text box. """ """ Display a text box. """
if self.configs.dialog: if self.configs.dialog:
self.d.textbox(text, height, width) self.d.textbox(str(text), height, width)