Changeset 317 for trunk/ctw/ctw

Show
Ignore:
Timestamp:
10/05/09 10:49:33 (11 months ago)
Author:
dan
Message:

Presentation cleanup provided by Tim Yang. Thanks Tim!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ctw/ctw

    r316 r317  
    1414import weatherfeed 
    1515 
    16 version = "0.5" 
     16version = "0.6" 
    1717 
    1818class asciiIcons: 
     
    187187      if day < 5: 
    188188        try: 
    189           dayWindows.append(win.derwin(int(maxy/5),int(maxx/2),int(day*(maxy/5))+1,1)) 
     189          dayWindows.append(win.derwin(int(maxy/5),maxx,int(day*(maxy/5))+1,1)) 
    190190        except curses.error: pass 
    191191      else: 
    192192        try: 
    193           dayWindows.append(win.derwin(int(maxy/5),int(maxx/2),int((day-5)*(maxy/5))+1,int(maxx/2)+1)) 
     193          dayWindows.append(win.derwin(int(maxy/5),maxx,int((day-5)*(maxy/5))+1,int(maxx/2)+1)) 
    194194        except curses.error: pass 
    195195      day += 1 
     
    213213  win.clear() 
    214214  maxy,maxx = win.getmaxyx() 
    215   maxx -= 2 
     215  maxx -= 13 
    216216  line = 1 
    217217 
     
    221221  except curses.error: pass 
    222222  try: 
    223     win.addstr(line,15,"Wind:%s %s" %( weather.forecast[day]["day"]["wind"]["speed"], 
     223    win.addstr(line,maxx,"Wind:%s %s" %( weather.forecast[day]["day"]["wind"]["speed"], 
    224224                                    weather.forecast[day]["day"]["wind"]["direction"]) 
    225225             );line+=1 
     
    229229  except curses.error: pass 
    230230  try: 
    231     win.addstr(line,19,"POP: %s" %(weather.forecast[day]["day"]["pop"]));line+=1 
     231    win.addstr(line,maxx,"POP: %s" %(weather.forecast[day]["day"]["pop"]));line+=1 
    232232  except curses.error: pass 
    233233