Python-World / python-mini-projects

A collection of simple python mini projects to enhance your python skills
https://python-world.github.io/python-mini-projects/#/
MIT License
14.64k stars 4.79k forks source link

Problem with Updatelabel in CaptchaGenrator .... #591

Open sharad740 opened 2 years ago

sharad740 commented 2 years ago

Description

In Captcha_Genrator.py , there is Function UpdateLabel() in refresh method . when i uncomment that line I did not got new captcha image while refresh btn is clicked . and after i uncommented this line as default , Program did not exited but with error image refresh successfully.

$ python Captcha_Genrator.py
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\SYSTEM_FAILURE\AppData\Local\Programs\Python\Python310\lib\tkinter\__init__.py", line 1921, in __call__
    return self.func(*args)
  File "C:\Users\SYSTEM_FAILURE\Desktop\PythonScripts\SImpleProjects\python-mini-projects\projects\Captcha_Genrator\Captcha_Genrator.py", line 50, in refresh
    UpdateLabel()
NameError: name 'UpdateLabel' is not defined