title: Adding TurtleScreen to Canvas: 'Toplevel' object has no attribute 'call'
body: <p>I am trying to add a <code>TurtleScreen</code> to a tkinter <code>Canvas</code>. The code below shows the beginning of the function I am using it in, up to where it breaks:</p>
  
  <pre><code>def draw():
      top = Toplevel()
      top.title("Your Drawing!")
      canvas = Canvas(top)
      canvas.pack()
      ts = turtle.TurtleScreen(canvas)  # this is the line causing an exception (line 36 in traceback)
  </code></pre>
  
  <p>Here is the traceback:</p>
  
  <pre><code>Exception in Tkinter callback
  Traceback (most recent call last):
    File "/Users/Blake/anaconda3/lib/python3.7/tkinter/__init__.py", line 1705, in __call__
      return self.func(*args)
    File "GUI.py", line 36, in draw
      ts = turtle.TurtleScreen(canvas)
    File "/Users/Blake/anaconda3/lib/python3.7/turtle.py", line 1001, in __init__
      rootwindow.call('wm', 'attributes', '.', '-topmost', '1')
  AttributeError: 'Toplevel' object has no attribute 'call'
  </code></pre>
  
  <p>I can't figure out why is is trying to call a Toplevel object (I assume it is trying to call the <code>top</code> object). As far as I can tell from <a href="https://docs.python.org/3/library/turtle.html#turtle.TurtleScreen" rel="nofollow noreferrer">the docs</a> I found, I am doing this correctly. What's wrong here?</p>