sorting image files before adding to book
This commit is contained in:
parent
ac2d44c1ed
commit
198cccb11f
2
book.py
2
book.py
@ -347,6 +347,8 @@ class MainWindowBook(QtGui.QMainWindow, Ui_MainWindowBook):
|
|||||||
|
|
||||||
|
|
||||||
def addImageFiles(self, filenames):
|
def addImageFiles(self, filenames):
|
||||||
|
filenames.sort()
|
||||||
|
|
||||||
filenamesListed = []
|
filenamesListed = []
|
||||||
for i in xrange(0, self.listWidgetFiles.count()):
|
for i in xrange(0, self.listWidgetFiles.count()):
|
||||||
filenamesListed.append(self.listWidgetFiles.item(i).text())
|
filenamesListed.append(self.listWidgetFiles.item(i).text())
|
||||||
|
Loading…
Reference in New Issue
Block a user