Skip to content

Commit 20b2d34

Browse files
committed
support python 3.7 compatiblity
1 parent 93b520e commit 20b2d34

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spatialmedia/gui.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ def action_open(self):
111111

112112
if metadata:
113113
# metadata here is an dict with a sv3d box
114-
metadata = metadata.values()[0]
114+
115+
print(metadata)
116+
metadata = list(metadata.values())[0]
115117
if metadata.clip_left_right > 0 or metadata.projection == "mesh":
116118
self.char_degrees.set("180")
117119
else:
@@ -136,7 +138,7 @@ def action_open(self):
136138
"""
137139

138140
if stereo:
139-
stereo = stereo.values()[0]
141+
stereo = list(stereo.values())[0]
140142
self.char_layout.set(stereo.stereo_mode_name());
141143

142144
if audio_metadata:

0 commit comments

Comments
 (0)