~tomasgroth/openlp/portable-path

« back to all changes in this revision

Viewing changes to openlp/core/ui/starttimedialog.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  #
33
33
    """
34
34
    The UI widgets for the time dialog
35
35
    """
36
 
    def setupUi(self, StartTimeDialog):
 
36
    def setup_ui(self, StartTimeDialog):
37
37
        """
38
38
        Set up the UI
39
39
        """
107
107
        self.dialog_layout.addWidget(self.second_spin_box, 3, 1, 1, 1)
108
108
        self.button_box = create_button_box(StartTimeDialog, 'button_box', ['cancel', 'ok'])
109
109
        self.dialog_layout.addWidget(self.button_box, 5, 2, 1, 2)
110
 
        self.retranslateUi(StartTimeDialog)
 
110
        self.retranslate_ui(StartTimeDialog)
111
111
        self.setMaximumHeight(self.sizeHint().height())
112
112
 
113
 
    def retranslateUi(self, StartTimeDialog):
 
113
    def retranslate_ui(self, StartTimeDialog):
114
114
        """
115
115
        Update the translations on the fly
116
116
        """