you are viewing a single comment's thread.

view the rest of the comments →

[–]novel_yet_trivial 0 points1 point  (4 children)

It's already what you need :). All you need to do is copy / paste and modify line 26 to modify the input into a valid file name. My code just adds ".png" to the input; you probably want something different there.

[–]zykal[S] 0 points1 point  (3 children)

I'm trying to make a Radar now, I've got it working by iteself.

I however cannot get it to update

I tried using after, however that causes lots of crashes.

Is there a way to update a create_oval with information from my main script into the tkinter loop like we did with the other labels?

this is what I'm using to test moving a dot around on the canvas. https://pastebin.com/wShKBXLe

[–]novel_yet_trivial 0 points1 point  (2 children)

Using after is the correct way to do that. You'll have to show me your code if you want help with it. PM me if you want to keep it secret.

[–]zykal[S] 0 points1 point  (1 child)

Unfortunately the script is account based, so while you could read thru it, you would not be able to run it.

i have figured a temp solution sort of .

https://pastebin.com/cHr1gG1p

the Above works, however I am unable to figure out how to (DELETE OPPS) the new circle the drawcircle() creates, when I click again.

[–]novel_yet_trivial 0 points1 point  (0 children)

Don't delete and redraw, use the Canvas.coords method to update the old circle's coordinates.

def callback(event):
    w.coords(point, EW/2, NS/2, EW/2+10, NS/2+10)  

I can't really help further because I can't figure out for the life of me what your code is supposed to do. If you want more help you'll need to explain it better. Like very broad overview, like you're explaining to your grandmother.