Skip to content

Commit

Permalink
Merge file filters into one
Browse files Browse the repository at this point in the history
Seems more intuitive.
  • Loading branch information
mpitid committed Oct 19, 2011
1 parent efb1eb8 commit ba3bb27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions labelme.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,10 +713,10 @@ def openFile(self, _value=False):
if self.filename else '.'
formats = ['*.%s' % unicode(fmt).lower()\
for fmt in QImageReader.supportedImageFormats()]
filters = 'Image files (%s)\nLabel files (*%s)'\
% (' '.join(formats), LabelFile.suffix)
filters = "Image & Label files (%s)" % \
' '.join(formats + ['*%s' % LabelFile.suffix])
filename = unicode(QFileDialog.getOpenFileName(self,
'%s - Choose Image', path, filters))
'%s - Choose Image or Label file', path, filters))
if filename:
self.loadFile(filename)

Expand Down

0 comments on commit ba3bb27

Please sign in to comment.