RemindMe [Python] - Programming On Unix

Users browsing this thread: 2 Guest(s)
deadgone
Long time nixers
A small script that reminds you to do something in a set amount of time.

Deps: blessings

Code:
#!/usr/bin/python2
from blessings import Terminal
from sys import argv
import os
#import time

try:
  script, remindx, timex = argv
except ValueError:
  print "./remindme \"USE QUOTES\" 4 (secs)"
  quit()
count = 0
t = Terminal()
#timex = int(timex)
os.system("sleep %r" % timex)
#time.sleep(timex)

print t.clear_eol + t.move(0, 60) + t.standout + t.red + ('REMINDER:') + t.normal + t.blue +  " " + t.blink(remindx)


Messages In This Thread
RemindMe [Python] - by deadgone - 04-09-2012, 12:22 PM
RE: RemindMe [Python] - by venam - 04-09-2012, 04:59 PM
RE: RemindMe [Python] - by deadgone - 04-09-2012, 06:07 PM
RE: RemindMe [Python] - by TheHotBot - 09-11-2012, 08:41 AM