R
R
Roma Kotolup2021-03-16 21:23:51
Python
Roma Kotolup, 2021-03-16 21:23:51

How to python tkinter canvas add pygame?

How to python tkinter canvas add pygame?
how I added a turtle here:

the code

from tkinter import *
import turtle as t
root = Tk()
w = Canvas(root, width=root.winfo_rootx()+(600-root.winfo_rootx()),  \
   height=root.winfo_rooty()+(470-root.winfo_rooty()))
w.grid()
red = t.RawTurtle(w)


how do i add pygame this way?
(or better as a widget)
I will be very grateful for the answer!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question