farisfaikar / Number-Game

Number Game is a game where players solve a 4-digit secret number combination using clever deductions!
MIT License
17 stars 9 forks source link

continue box in message box #56

Closed UjjwalAggarwal-1 closed 2 years ago

farisfaikar commented 2 years ago

This version can't seem to run on my machine. This error occurred every time an achievement is completed.

Traceback (most recent call last):
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\main.py", line 195, in <module>
    run_boot()
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\main.py", line 135, in run_boot
    run_game()
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\main.py", line 183, in run_game
    program.run()
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\main.py", line 59, in run
    self.numpad.draw(screen)
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\numpad.py", line 50, in draw
    self.confirm_button.draw(screen)
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\button.py", line 50, in draw
    self.check_click()
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\button.py", line 161, in check_click
    self.button_action()
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\button.py", line 130, in button_action
    numbergame.compare()
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\numbergame.py", line 25, in compare
    check_achievements(gv.seconds, gv.minutes, gv.remaining_attempts)
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\achievement.py", line 16, in check_achievements
    achv_notif(2)
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\achievement_notif.py", line 33, in achv_notif    limg = Label(back, i=bgimg)
  File "C:\Program Files\Python310\lib\tkinter\__init__.py", line 3177, in __init__
    Widget.__init__(self, master, 'label', cnf, kw)
  File "C:\Program Files\Python310\lib\tkinter\__init__.py", line 2601, in __init__
    self.tk.call(
_tkinter.TclError: image "pyimage2" doesn't exist

It might have something to do with this.

UjjwalAggarwal-1 commented 2 years ago

This version can't seem to run on my machine. This error occurred every time an achievement is completed.

Traceback (most recent call last):
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\main.py", line 195, in <module>
    run_boot()
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\main.py", line 135, in run_boot
    run_game()
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\main.py", line 183, in run_game
    program.run()
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\main.py", line 59, in run
    self.numpad.draw(screen)
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\numpad.py", line 50, in draw
    self.confirm_button.draw(screen)
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\button.py", line 50, in draw
    self.check_click()
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\button.py", line 161, in check_click
    self.button_action()
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\button.py", line 130, in button_action
    numbergame.compare()
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\numbergame.py", line 25, in compare
    check_achievements(gv.seconds, gv.minutes, gv.remaining_attempts)
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\achievement.py", line 16, in check_achievements
    achv_notif(2)
  File "d:\Faris-Projects\Programming\Python\Number-Game-v0.1\src\achievement_notif.py", line 33, in achv_notif    limg = Label(back, i=bgimg)
  File "C:\Program Files\Python310\lib\tkinter\__init__.py", line 3177, in __init__
    Widget.__init__(self, master, 'label', cnf, kw)
  File "C:\Program Files\Python310\lib\tkinter\__init__.py", line 2601, in __init__
    self.tk.call(
_tkinter.TclError: image "pyimage2" doesn't exist

It might have something to do with this.

fixed, thanks for pointing it out, did not understand the reason though

UjjwalAggarwal-1 commented 2 years ago

just to be clear, its fixed

farisfaikar commented 2 years ago

I'm moving this feature to the achv-notif-tkinter branch so if you want to add more changes, do so from that branch instead. Also, it'll be awesome if you could star this project, thanks!