mirror of
https://github.com/serialexperiments0815/PythonJigsaw01.git
synced 2026-07-12 15:32:26 +00:00
20 lines
No EOL
523 B
Python
20 lines
No EOL
523 B
Python
from PyQt5.QtWidgets import QFileDialog
|
|
|
|
class ImageConversion():
|
|
def __init__(self):
|
|
pass
|
|
|
|
def openImageFile(self):
|
|
filePath, _ = QFileDialog.getOpenFileName(
|
|
None,
|
|
"Select an image",
|
|
"",
|
|
"Image Files (*.png *.jpg *.jpeg *.bmp *.gif)"
|
|
)
|
|
if filePath:
|
|
return filePath
|
|
|
|
def openFolder(self):
|
|
folderPath = QFileDialog.getExistingDirectory(None, "Select Folder")
|
|
if folderPath:
|
|
return folderPath |