+ "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
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
""
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:
>>
&
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