Is it possible to Zoom Turtle Window ? #4
Closed
ShivashishPachauri
started this conversation in
Show and tell
Replies: 1 comment
-
@ShivashishPachauri tracy.turtlesize(5)
tracy.pensize(5) And please try to put your code properly:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey Akascape, Thanks for your great contribution in creating tkdial. I have one more doubt but regarding Turtle Python. I saw your oscilioscope where you used Turtle Graphics, so I thought you can help.
Here Im trying to real time draw the geo coordinates of city Delhi using turtle. Function ParsePacket() returns data array which have randomly generated geo-coordinated of Delhi .
Problem:
I can see that my turtle pointer actually works correctly but change in value of geocoordinates are very small and I want to know if I can zoom my turtle window and can clearly see the movements. Can you help me in Zooming the window?
import random
import tkinter as Tkinter
import threading
import time
import turtle
class GUI():
def ParsePacket():
n = random.random()
latitude= 28+n
longitude=77+n
def update():
while True:
z = GUI.ParsePacket()
x=z[0]
y=z[1]
print(x,y)
tracy.goto(x,y)
tracy.pendown()
if name == "main":
Im also attaching zip file of code, in case above code does not work.
Turtle_tracker_by_threading2.zip
Beta Was this translation helpful? Give feedback.
All reactions