diff --git a/openlp/core/ui/servicemanager.py b/openlp/core/ui/servicemanager.py index f131a20c7..e1aa1537f 100644 --- a/openlp/core/ui/servicemanager.py +++ b/openlp/core/ui/servicemanager.py @@ -365,7 +365,7 @@ class ServiceManager(OpenLPMixin, RegistryMixin, QtGui.QWidget, Ui_ServiceManage def set_file_name(self, file_name): """ Setter for service file. - + :param file_name: The service file name """ self._file_name = str(file_name) diff --git a/openlp/plugins/alerts/alertsplugin.py b/openlp/plugins/alerts/alertsplugin.py index 97ca0f60b..e41c413bc 100644 --- a/openlp/plugins/alerts/alertsplugin.py +++ b/openlp/plugins/alerts/alertsplugin.py @@ -148,8 +148,7 @@ class AlertsPlugin(Plugin): """ Give the alerts plugin the opportunity to add items to the **Tools** menu. - :param tools_menu: - The actual **Tools** menu item, so that your actions can use it as their parent. + :param tools_menu: The actual **Tools** menu item, so that your actions can use it as their parent. """ log.info('add tools menu') self.tools_alert_item = create_action(tools_menu, 'toolsAlertItem', @@ -240,10 +239,9 @@ class AlertsPlugin(Plugin): def refresh_css(self, frame): """ - Trigger an update of the CSS in the maindisplay. + Trigger an update of the CSS in the main display. - ``frame`` - The Web frame holding the page. + :param frame: The Web frame holding the page. """ align = VerticalType.Names[self.settings_tab.location] frame.evaluateJavaScript('update_css("%s", "%s", "%s", "%s", "%s")' % diff --git a/openlp/plugins/alerts/forms/alertdialog.py b/openlp/plugins/alerts/forms/alertdialog.py index a4596d9ea..eead213fa 100644 --- a/openlp/plugins/alerts/forms/alertdialog.py +++ b/openlp/plugins/alerts/forms/alertdialog.py @@ -39,7 +39,7 @@ class Ui_AlertDialog(object): """ Setup the Alert UI dialog - :param alert_dialog: + :param alert_dialog: The dialog """ alert_dialog.setObjectName('alert_dialog') alert_dialog.resize(400, 300) @@ -93,7 +93,8 @@ class Ui_AlertDialog(object): def retranslateUi(self, alert_dialog): """ Retranslate the UI strings - :param alert_dialog: + + :param alert_dialog: The dialog """ alert_dialog.setWindowTitle(translate('AlertsPlugin.AlertForm', 'Alert Message')) self.alert_entry_label.setText(translate('AlertsPlugin.AlertForm', 'Alert &text:')) diff --git a/openlp/plugins/alerts/forms/alertform.py b/openlp/plugins/alerts/forms/alertform.py index 80bd0cffa..4e3bedcd5 100644 --- a/openlp/plugins/alerts/forms/alertform.py +++ b/openlp/plugins/alerts/forms/alertform.py @@ -177,8 +177,7 @@ class AlertForm(QtGui.QDialog, Ui_AlertDialog): """ Prepares the alert text for displaying. - ``text`` - The alert text (unicode). + :param text: The alert text. """ if not text: return False @@ -213,8 +212,7 @@ class AlertForm(QtGui.QDialog, Ui_AlertDialog): Called when the *alert_list_widget*'s current row has been changed. This enables or disables buttons which require an item to act on. - ``row`` - The row (int). If there is no current row, the value is -1. + :param row: The row (int). If there is no current row, the value is -1. """ if row == -1: self.display_button.setEnabled(False) diff --git a/openlp/plugins/alerts/lib/alertsmanager.py b/openlp/plugins/alerts/lib/alertsmanager.py index 26461f9ee..b1d453fb2 100644 --- a/openlp/plugins/alerts/lib/alertsmanager.py +++ b/openlp/plugins/alerts/lib/alertsmanager.py @@ -59,6 +59,8 @@ class AlertsManager(QtCore.QObject): def alert_text(self, message): """ Called via a alerts_text event. Message is single element array containing text. + + :param message: The message text to be displayed """ if message: self.display_alert(message[0]) @@ -67,8 +69,7 @@ class AlertsManager(QtCore.QObject): """ Called from the Alert Tab to display an alert. - :param text: - The text to display + :param text: The text to display """ log.debug('display alert called %s' % text) if text: @@ -98,8 +99,7 @@ class AlertsManager(QtCore.QObject): """ Time has finished so if our time then request the next Alert if there is one and reset the timer. - :param event: - the QT event that has been triggered. + :param event: the QT event that has been triggered. """ log.debug('timer event') if event.timerId() == self.timer_id: