def showErrorDlg(errmsg, parent, trcbk=False):
 if trcbk:
  error = u''
  f = StringIO()
  print_exc(file=f)
  error_mess = f.getvalue().splitlines()
  for line in error_mess:
   error = ((error + str(line)) + u'\n')
  errmsg = ((errmsg + u'\n\n') + error)
 return error_dialog(parent, _(((PLUGIN_NAME + u' v') + PLUGIN_VERSION)), _(errmsg), show=True)

def showErrorDlg ( errmsg , parent , trcbk = False ) : if trcbk : error = u'' f = StringIO ( ) print_exc ( file = f ) error_mess = f . getvalue ( ) . splitlines ( ) for line in error_mess : error = ( ( error + str ( line ) ) + u'\n' ) errmsg = ( ( errmsg + u'\n\n' ) + error ) return error_dialog ( parent , _ ( ( ( PLUGIN_NAME + u' v' ) + PLUGIN_VERSION ) ) , _ ( errmsg ) , show = True )
wrapper method for calibres error_dialog .