Skip to content

Commit

Permalink
Switch back to static QFileDialog method for file selection
Browse files Browse the repository at this point in the history
utils.getFile uses a non-native file selector
  • Loading branch information
glutanimate committed Feb 14, 2017
1 parent 3159c05 commit ecc538c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions image_occlusion_enhanced/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ def getImage(self, parent=None, noclip=False):
if not prev_image_dir or not os.path.isdir(prev_image_dir):
prev_image_dir = IO_HOME

image_path = getFile(parent, "Choose an Image", None,
"Image Files (*.png *jpg *.jpeg *.gif)",
dir=prev_image_dir)
image_path = QFileDialog.getOpenFileName(parent,
"Select an Image", prev_image_dir,
"Image Files (*.png *jpg *.jpeg *.gif)")
image_path = unicode(image_path)

if not image_path:
return None
Expand Down

0 comments on commit ecc538c

Please sign in to comment.