We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bc4cb2 commit 4cd973dCopy full SHA for 4cd973d
1 file changed
stage4.1_first_application/pycasa/ui/tasks/pycasa_task.py
@@ -48,6 +48,9 @@ def _default_layout_default(self):
48
# Task interface ----------------------------------------------------------
49
50
def open_in_central_pane(self, filepath):
51
- if splitext(filepath)[1] in SUPPORTED_FORMATS:
+ file_ext = splitext(filepath)[1]
52
+ if file_ext.lower() in SUPPORTED_FORMATS:
53
obj = ImageFile(filepath=filepath)
54
self.central_pane.edit(obj, factory=ImageFileEditor)
55
+ else:
56
+ print("Unsupported file format: {}".format(file_ext))
0 commit comments