~samuel-buffet/entertainer/bug_380745

« back to all changes in this revision

Viewing changes to entertainerlib/frontend/gui/screens/weather.py

  • Committer: Samuel Buffet
  • Date: 2009-05-28 20:05:38 UTC
  • mfrom: (378.2.3 trunk)
  • Revision ID: samuel.buffet@gmail.com-20090528200538-p5kfgipg580uy15s
Merged with trunk 381.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
        screen_title = Label(0.13, "screentitle", 0, 0.87, _("Weather"))
21
21
        self.add(screen_title)
22
22
 
23
 
        if (self.weather.get_location() == ''):
 
23
        if (self.weather.location == ''):
24
24
            self.add(Label(0.04167, "text", 0.30, 0.20,
25
25
                _("No weather location defined!"), font_weight="bold"))
26
26
        else:
27
 
            location_text = self.weather.get_location()
 
27
            location_text = self.weather.location
28
28
 
29
29
            location = Label(0.04167, "text", 0.40, 0.13, location_text,
30
30
                font_weight="bold")