Changeset 317 for trunk/ctw/ctw
- Timestamp:
- 10/05/09 10:49:33 (11 months ago)
- Files:
-
- 1 modified
-
trunk/ctw/ctw (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ctw/ctw
r316 r317 14 14 import weatherfeed 15 15 16 version = "0. 5"16 version = "0.6" 17 17 18 18 class asciiIcons: … … 187 187 if day < 5: 188 188 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)) 190 190 except curses.error: pass 191 191 else: 192 192 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)) 194 194 except curses.error: pass 195 195 day += 1 … … 213 213 win.clear() 214 214 maxy,maxx = win.getmaxyx() 215 maxx -= 2215 maxx -= 13 216 216 line = 1 217 217 … … 221 221 except curses.error: pass 222 222 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"], 224 224 weather.forecast[day]["day"]["wind"]["direction"]) 225 225 );line+=1 … … 229 229 except curses.error: pass 230 230 try: 231 win.addstr(line, 19,"POP: %s" %(weather.forecast[day]["day"]["pop"]));line+=1231 win.addstr(line,maxx,"POP: %s" %(weather.forecast[day]["day"]["pop"]));line+=1 232 232 except curses.error: pass 233 233
