~nataliabidart/ubuntu-sso-client/stable-3-0-update-2.99.90

« back to all changes in this revision

Viewing changes to ubuntu_sso/qt/error_page.py

  • Committer: Natalia B. Bidart
  • Date: 2012-03-06 14:53:38 UTC
  • mfrom: (812.1.89 ubuntu-sso-client)
  • Revision ID: natalia.bidart@canonical.com-20120306145338-x28na428035jkqwh
- Updating from trunk up to revno 901.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Email Verification page UI."""
18
18
 
19
 
from ubuntu_sso.qt.gui import SSOWizardPage
 
19
from ubuntu_sso.qt.sso_wizard_page import SSOWizardPage
 
20
from ubuntu_sso.qt.ui.error_message_ui import Ui_ErrorPage
20
21
from ubuntu_sso.utils.ui import ERROR
21
22
 
22
23
 
23
24
class ErrorPage(SSOWizardPage):
24
25
    """Widget used to show the diff errors."""
25
26
 
26
 
    def __init__(self, ui, *args, **kwargs):
27
 
        super(ErrorPage, self).__init__(ui, *args, **kwargs)
 
27
    ui_class = Ui_ErrorPage
 
28
    next = None
 
29
 
 
30
    def _set_translated_strings(self):
 
31
        """Set the translated strings."""
 
32
        self.ui.error_message_label.setText(ERROR)
 
33
 
 
34
    def _connect_ui(self):
 
35
        """Connect the buttons to perform actions."""
28
36
        self.next = -1
29
 
        self.ui.error_message_label.setText(ERROR)