mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 01:58:41 -05:00
fix checkname function
This commit is contained in:
parent
912f7ab7ef
commit
9fa487deca
3 changed files with 1 additions and 1 deletions
BIN
list-add.png
BIN
list-add.png
Binary file not shown.
|
Before Width: | Height: | Size: 678 B After Width: | Height: | Size: 676 B |
|
|
@ -69,7 +69,7 @@ class StartQT4(QMainWindow):
|
||||||
print("booya")
|
print("booya")
|
||||||
|
|
||||||
def checkname(self, filename):
|
def checkname(self, filename):
|
||||||
if path.splitext(filename)[1].lower() in ["jpg", "jpeg", "png"]:
|
if path.splitext(str(filename))[1].lower() in [".jpg", ".jpeg", ".png"]:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def file_dialog(self):
|
def file_dialog(self):
|
||||||
|
|
|
||||||
BIN
view-refresh.png
BIN
view-refresh.png
Binary file not shown.
|
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
Loading…
Add table
Add a link
Reference in a new issue