Python Forum
conway's game of life / Single Responsibility Principle
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
conway's game of life / Single Responsibility Principle
#6
You need to pass it the canvas object.  Something like
def main():
    window = tk.Tk()
    window.title("conway's game of life")
    canvas = tk.Canvas(window, width=1200, height=900, bd=0, highlightthickness=0)
    canvas.pack()    

    bind_keys(canvas)

    cells = setup_phase(window, canvas)
    main_phase(cells, window, canvas)
Reply


Messages In This Thread
RE: conway's game of life / Single Responsibility Principle - by Mekire - Dec-16-2016, 12:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  While loop/half-life Miraclefruit 6 8,598 Mar-06-2017, 05:24 PM
Last Post: nilamo
  conway's game of life hanscvanleeuwen 17 18,158 Dec-09-2016, 04:05 PM
Last Post: hanscvanleeuwen
  Game of life using IDLE Informatics109 4 5,212 Oct-29-2016, 01:39 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020