Just updated Post #1 with version 0.0.4
Many thanks to Doitsu for his help and suggestions.
The GetFileName-Dialog is realized with imports from plugin_utils.py
relevant code:
Code:
#--------------------------------------
# file selection dialog
# Code courtesy of Doitsu / KindleGenQt
#--------------------------------------
def GetFileName():
''' simple file selection dialog box '''
fpath = None
if not PluginApplication.instance():
app = PluginApplication(sys.argv, bk)
else:
app = PluginApplication.instance()
dlg = QtWidgets.QFileDialog()
.....
if dlg.exec():
....