Wolf icon indicating copy to clipboard operation
Wolf copied to clipboard

turtle does not stay open

Open Almenon opened this issue 6 years ago • 2 comments

import turtle

turtle.forward(200)

turtle should stay open but instead it exits as soon as the turtle finishes moving.

Almenon avatar Mar 19 '18 05:03 Almenon

tkinter exits after 12 seconds

from tkinter import Tk, Label, Button

class MyFirstGUI:
    def __init__(self, master):
        self.master = master
        master.title("A simple GUI")

        self.label = Label(master, text="This is our first GUI!")
        self.label.pack()

        self.greet_button = Button(master, text="Greet", command=self.greet)
        self.greet_button.pack()

        self.close_button = Button(master, text="Close", command=master.quit)
        self.close_button.pack()

    def greet(self):
        print("Greetings!")

root = Tk()
my_gui = MyFirstGUI(root)
root.mainloop() # wolf kills me after 12 seconds :(

Almenon avatar Mar 19 '18 05:03 Almenon

This is a tough one. I'd have to completely change how Wolf works because this would require streaming input/output from the extension to the tracer. I'll leave this issue open however for visibility, and I should probably leave a note about scripts with an event loop not being compatible. But as far as fixing the problem .. we'll have to wait and see.

Thanks very much for the issue report! :beers:

Duroktar avatar Mar 21 '18 22:03 Duroktar