I am a newbie with python and I am creating a game just for fun. I tried using turtle with tkinter because I need buttons and turtle graphics. But the button doesn't show on the canvas.
So here's some of my codes:
root = Tk()
root.geometry('1000x1000')
root.title('Cookie Clicker')
canvas = Canvas(root, width = 1000, height = 1000, bg = 'aqua')
canvas.pack()
wn = TurtleScreen(canvas)
wn.register_shape('/storage/emulated/0/Download/cookie.gif')
cookie = RawTurtle(wn)
cookie.shape('/storage/emulated/0/Download/cookie.gif')
cookie.speed(0)
The codes above are the canvas and the turtle graphics and the code below is the button that doesn't show
click_upgrade = Button(root, text = 'improve clicks', command = up_click)
I tried changing the 'root' on the button to 'canvas', and 'wn' but it doesn't work. So please how do I fix this.