>>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
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