View Single Post
Old 07-12-2014, 11:31 PM   #76
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,916
Karma: 29228280
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You shouldn't use QFileDialog directly at all. Instead use the more convenient calibre provided functions

from calibre.gui2 import choose_dir, choose_files, choose_save_file, choose_images

and so on. These have the added advantage that they save the last used directory automatically.
kovidgoyal is offline   Reply With Quote