View Single Post
Old 06-01-2025, 11:30 AM   #42
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,182
Karma: 6565382
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by Doitsu View Post
I've got a cosmetic Sigil Qt question. When using file open/save dialog code such as the following code:

Code:
    app = QtWidgets.QApplication(sys.argv)
    fpath, seleted_filter = QtWidgets.QFileDialog.getSaveFileName(None, 'Save ePub3 as ...', suggest, "ePubs (*.epub)")
    app.quit()
on Windows machines, an ugly Python icon is shown in the task bar.
Apparently, this can be prevented by specifying the parent control instead of None.

How do I get the parent control?
You could create a hidden QMainWindow to act as a parent but that just moves your problem to what to put as the parent of the QMainWindow I would guess.
KevinH is online now   Reply With Quote