~tomasgroth/openlp/portable-path

« back to all changes in this revision

Viewing changes to openlp/core/ui/servicenoteform.py

  • Committer: Tomas Groth
  • Date: 2019-04-30 19:02:42 UTC
  • mfrom: (2829.2.32 openlp)
  • Revision ID: tomasgroth@yahoo.dk-20190430190242-6zwjk8724tyux70m
trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
###############################################################################
5
5
# OpenLP - Open Source Lyrics Projection                                      #
6
6
# --------------------------------------------------------------------------- #
7
 
# Copyright (c) 2008-2018 OpenLP Developers                                   #
 
7
# Copyright (c) 2008-2019 OpenLP Developers                                   #
8
8
# --------------------------------------------------------------------------- #
9
9
# This program is free software; you can redistribute it and/or modify it     #
10
10
# under the terms of the GNU General Public License as published by the Free  #
41
41
        """
42
42
        super(ServiceNoteForm, self).__init__(Registry().get('main_window'), QtCore.Qt.WindowSystemMenuHint |
43
43
                                              QtCore.Qt.WindowTitleHint | QtCore.Qt.WindowCloseButtonHint)
44
 
        self.setupUi()
45
 
        self.retranslateUi()
 
44
        self.setup_ui()
 
45
        self.retranslate_ui()
46
46
 
47
47
    def exec(self):
48
48
        """
51
51
        self.text_edit.setFocus()
52
52
        return QtWidgets.QDialog.exec(self)
53
53
 
54
 
    def setupUi(self):
 
54
    def setup_ui(self):
55
55
        """
56
56
        Set up the UI of the dialog
57
57
        """
66
66
        self.button_box = create_button_box(self, 'button_box', ['cancel', 'save'])
67
67
        self.dialog_layout.addWidget(self.button_box)
68
68
 
69
 
    def retranslateUi(self):
 
69
    def retranslate_ui(self):
70
70
        """
71
71
        Translate the UI on the fly
72
72
        """