Skip to content

Commit

Permalink
make file open dialog to open home dir by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
vipranarayan14 committed Feb 11, 2020
1 parent 1d3b562 commit 470f918
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/python/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from os import path

from PyQt5.QtCore import Qt
from PyQt5.QtCore import Qt, QDir
from PyQt5.QtGui import QImage, QPixmap
from PyQt5.QtWidgets import (
QAction,
Expand Down Expand Up @@ -269,6 +269,7 @@ def open_images(self):
filepaths, _ = QFileDialog.getOpenFileNames(
self,
caption='Open file',
directory=QDir.homePath(),
filter='Image files (*.jpg *.jpeg *.png *.tiff *.tif *.gif)'
)

Expand Down

0 comments on commit 470f918

Please sign in to comment.