~ralsina/ubuntuone-control-panel/quit-quit-quit

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/gui/qt/loadingoverlay.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart
  • Date: 2012-02-22 17:12:00 UTC
  • mfrom: (262.2.6 all-ui-from-code)
  • Revision ID: tarmac-20120222171200-c76wucr5xaxvn6vw
- No more strings coming up from the Designer ui files (LP: #938626).

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
from PyQt4 import QtGui, QtCore
22
22
 
 
23
from ubuntuone.controlpanel.gui import LOADING_OVERLAY
23
24
from ubuntuone.controlpanel.gui.qt.ui import loadingoverlay_ui
24
25
 
25
26
 
44
45
        self.counter = 0
45
46
        self.orientation = False
46
47
 
 
48
        # The following is a hack to avoid having the faked self.ui failing
 
49
        # with AttributeError in the tests. We need to improve the fake so we
 
50
        # don't leak this to the production code.
 
51
        if getattr(self.ui, 'label', None) is not None:
 
52
            self.ui.label.setText(LOADING_OVERLAY)
 
53
 
47
54
    # Invalid name "paintEvent"
48
55
    # pylint: disable=C0103
49
56