mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-08-19 13:09:58 -07:00
code release
This commit is contained in:
parent
b941ba41a3
commit
a902f11f74
354 changed files with 826570 additions and 1 deletions
14
xlib/qt/widgets/QXDirDialog.py
Normal file
14
xlib/qt/widgets/QXDirDialog.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from PyQt6.QtWidgets import *
|
||||
|
||||
|
||||
class QXDirDialog(QFileDialog):
|
||||
def __init__(self, parent=None, caption : str = None, directory : str = None, accepted=None):
|
||||
super().__init__(parent=parent, directory=directory)
|
||||
self.setOption(QFileDialog.Option.DontUseNativeDialog)
|
||||
self.setOption(QFileDialog.Option.ShowDirsOnly, True)
|
||||
self.setFileMode(QFileDialog.FileMode.Directory)
|
||||
if caption is not None:
|
||||
self.setWindowTitle(caption)
|
||||
if accepted is not None:
|
||||
self.accepted.connect(accepted)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue