def access_key(k):
 if QKeySequence.keyBindings(k):
  return (u' DCTB ' + QKeySequence(k).toString(QKeySequence.NativeText))
 return u''

def access_key ( k ) : if QKeySequence . keyBindings ( k ) : return ( u' DCTB ' + QKeySequence ( k ) . toString ( QKeySequence . NativeText ) ) return u''
return shortcut text suitable for adding to a menu item .