mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-25 20:45:58 +01:00
...
This commit is contained in:
parent
268a213659
commit
bf3d7ad5b0
1 changed files with 12 additions and 11 deletions
|
|
@ -35,17 +35,18 @@ def __exit__(self, *a):
|
|||
|
||||
class FileDialog(QObject):
|
||||
|
||||
def __init__(self, title=_('Choose Files'),
|
||||
filters=[],
|
||||
add_all_files_filter=True,
|
||||
parent=None,
|
||||
modal=True,
|
||||
name='',
|
||||
mode=QFileDialog.ExistingFiles,
|
||||
default_dir=u'~',
|
||||
no_save_dir=False,
|
||||
combine_file_and_saved_dir=False
|
||||
):
|
||||
def __init__(
|
||||
self, title=_('Choose Files'),
|
||||
filters=[],
|
||||
add_all_files_filter=True,
|
||||
parent=None,
|
||||
modal=True,
|
||||
name='',
|
||||
mode=QFileDialog.ExistingFiles,
|
||||
default_dir=u'~',
|
||||
no_save_dir=False,
|
||||
combine_file_and_saved_dir=False
|
||||
):
|
||||
from calibre.gui2 import dynamic, sanitize_env_vars
|
||||
from calibre.gui2.ui import get_gui
|
||||
gui = get_gui()
|
||||
|
|
|
|||
Loading…
Reference in a new issue