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