Thanks @aarni joensuu.
Turns out I should add global top in those functions only then the change will be made to the overall variable.
solved is ‘if top==None:top=1’ correct
Thanks @aarni joensuu.
Turns out I should add global top in those functions only then the change will be made to the overall variable.
solved is ‘if top==None:top=1’ correct