mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 18:08:42 -05:00
get directory ready for settings
This commit is contained in:
parent
7e8a0b7cd6
commit
8a89a44c9e
1 changed files with 3 additions and 1 deletions
|
|
@ -128,9 +128,11 @@ class StartQT4(QMainWindow):
|
||||||
def file_dialog(self):
|
def file_dialog(self):
|
||||||
"""Open a file dialog and send the selected images to compress_file."""
|
"""Open a file dialog and send the selected images to compress_file."""
|
||||||
fd = QFileDialog(self)
|
fd = QFileDialog(self)
|
||||||
|
directory = ""
|
||||||
|
|
||||||
images = fd.getOpenFileNames(self,
|
images = fd.getOpenFileNames(self,
|
||||||
"Select one or more image files to compress",
|
"Select one or more image files to compress",
|
||||||
"", # directory
|
directory,
|
||||||
# this is a fix for file dialog differentiating between cases
|
# this is a fix for file dialog differentiating between cases
|
||||||
"Image files (*.png *.jpg *.jpeg *.PNG *.JPG *.JPEG)")
|
"Image files (*.png *.jpg *.jpeg *.PNG *.JPG *.JPEG)")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue