Re: [Tutor] about global definition

2005-11-22 Thread alan . gauld
>>I have a code here. I understand i can not draw lines without the >>global definition of lastX and lastY. But still confused by its use. >>when should we use global definition? If you don't use classes then you will need to use global variables any time you want to pass information between funct

[Tutor] about global definition

2005-11-21 Thread Shi Mu
I have a code here. I understand i can not draw lines without the global definition of lastX and lastY. But still confused by its use. when should we use global definition? from Tkinter import * root = Tk() c = Canvas(root, bg='#0e2e0e', height=500, width=1000) frame = c lastX="" lastY="" def cl