mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 01:58:41 -05:00
dont show gifs in dialog
This commit is contained in:
parent
3ec1938b3e
commit
9d126924e7
2 changed files with 14 additions and 14 deletions
|
|
@ -33,7 +33,7 @@ class StartQT4(QMainWindow):
|
|||
images = fd.getOpenFileNames(self,
|
||||
"Select one or more image files to compress",
|
||||
"", # directory
|
||||
"Image files (*.png *.gif *.jpg)")
|
||||
"Image files (*.png *.jpg)")
|
||||
for image in images:
|
||||
self.compress_file(image)
|
||||
|
||||
|
|
@ -65,10 +65,6 @@ class StartQT4(QMainWindow):
|
|||
runstr = 'optipng -force -o7 "' + str(filename) + '"'
|
||||
runfile = system(runstr)
|
||||
|
||||
else:
|
||||
print "run something for gif"
|
||||
runfile = system('ls')
|
||||
|
||||
if runfile == 0:
|
||||
newfile = QFile(filename)
|
||||
newfilesize = newfile.size()
|
||||
|
|
@ -81,7 +77,7 @@ class StartQT4(QMainWindow):
|
|||
self.update_table()
|
||||
|
||||
else:
|
||||
print "uh. not good" #implement, something went wrong
|
||||
print "uh. not good" #throw dialogbox error or something?
|
||||
|
||||
|
||||
def update_table(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue