authorsform

class openlp.plugins.songs.forms.authorsform.AuthorsForm(parent=None)[source]

Bases: PyQt5.QtWidgets.QDialog, openlp.plugins.songs.forms.authorsdialog.Ui_AuthorsDialog

Class to control the Maintenance of Authors Dialog

accept()[source]

Override the QDialog’s accept() method to do some validation before the dialog can be closed.

display_name
exec(clear=True)[source]

Execute the dialog.

Parameters:clear – Clear the form fields before displaying the dialog.
first_name

Get the value of the first name from the UI widget.

last_name

Get the value of the last name from the UI widget.

on_first_name_edited(display_name)[source]

Slot for when the first name is edited.

When the first name is edited and the setting to automatically create a display name is True, then try to create a display name from the first and last names.

Parameters:display_name – The text from the first_name_edit widget.
on_last_name_edited(display_name)[source]

Slot for when the last name is edited.

When the last name is edited and the setting to automatically create a display name is True, then try to create a display name from the first and last names.

Parameters:display_name – The text from the last_name_edit widget.