I am using turtle graphics with Tkinter however the problem is that the turtle graphics window comes over my root window and covers it! Is there a way to solve this?
Note: i am using turtle inside functions if that makes any difference...
import ImageTk
import tkMessageBox
from Tkinter import*
from turtle import *
import time
root = Tk()#main window
start=ImageTk.PhotoImage(file="start.gif")
window = Canvas(root, width=800, height=480, bg="white")#canvas named window
window.grid(column=1, rowspan=6, row=0, columnspan=5)
global t
t=RawTurtle(window)
window.create_image(-25,-4,image=start)
t.speed(0)
t.pu()
t.goto(-302,47)
t.pensize(10)
t.pd()
t.speed(1)
t.pencolor("green")
t.fd(529)
root.mainloop()
this works all right but in my code it doesn't and my code is pretty long so i'm not sure if i should upload it here....