Skip to content

Commit 4c3d4ce

Browse files
committed
Make displayed columns module constant
1 parent 7ad83e7 commit 4c3d4ce

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

stage3.0_first_views/pycasa/ui/image_folder_view.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
from pycasa.model.image_folder import ImageFolder
66

7+
DISPLAYED_COLUMNS = [
8+
'ApertureValue', 'ExifVersion', 'Model', 'Make', 'LensModel', 'DateTime',
9+
'ShutterSpeedValue', 'XResolution', 'YResolution'
10+
]
11+
712

813
class ImageFolderView(ModelView):
914
""" ModelView for a folder of images.
@@ -16,19 +21,7 @@ class ImageFolderView(ModelView):
1621
Item('model.directory', style="readonly", show_label=False),
1722
Item(
1823
'metadata_df',
19-
editor=DataFrameEditor(
20-
columns=[
21-
'ApertureValue',
22-
'ExifVersion',
23-
'Model',
24-
'Make',
25-
'LensModel',
26-
'DateTime',
27-
'ShutterSpeedValue',
28-
'XResolution',
29-
'YResolution'
30-
]
31-
),
24+
editor=DataFrameEditor(columns=DISPLAYED_COLUMNS),
3225
show_label=False
3326
),
3427
resizable=True

0 commit comments

Comments
 (0)