Re: [Tutor] console text positioning

2005-11-12 Thread Chris F.A. Johnson
+ "0m" ## Clear text attributes ## set attributes set_attr = CSI + "%sm" set_bold = CSI + "1m" set_ul = CSI + "4m" set_rev = CSI + "7m" def printat(row,col,arg=""): sys.stdout.write( CSI + str(row) + ";" + s

Re: [Tutor] Newbie Anxiety

2005-11-10 Thread Chris F.A. Johnson
t; > How is this done in Python? (So I can stop holding my breath as I study > this great languageand relax.) n = 1 while n <= 10: print n n = n + 1 Or: for n in [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]: print n Or: for n in rang

Re: [Tutor] click and line

2005-11-06 Thread Chris F.A. Johnson
"" root = Tk() c = Canvas(root, bg='#0e2e0e', height=500, width=1000) frame = c c.bind('',click) c.bind('',newline) c.pack() root.mainloop() > On 11/6/05, Chris F.A. Johnson <[EMAIL PROTECTED]> wrote: >> On Sun, 6 Nov 2005, Shi Mu wrote: >> &

Re: [Tutor] click and line

2005-11-06 Thread Chris F.A. Johnson
e', height=500, width=1000) > > lastX="" > lastY="" > def click(event): > global lastX, lastY > if lastX != "": > c.create_line(lastX,lastY,event.x,event.y,fill="white") > lastX = event.x > lastY = event.y > > frame = c &g