def terminate(self): """ Overrides the close window event to make sure the TempoClock thread is properly stopped """ Code.execute("Clock.stop()") return
def killall(self, event): """ Triggered by a Ctrl-. event """ Code.execute("Clock.clear()") return "break"
class interface(App): Code.execute("from FoxDot import *") Code.execute("Clock.start()") def __init__(self): App.__init__(self, "FoxDot - Live Coding with Python and SuperCollider") print "Welcome to FoxDot!" def update_prompt(self): """ Remove this """ return def submit(self, code_str): """ Overwrites the empty method to send a piece of FoxDot code to the environment. """ try: Code.execute(code_str) except: return def check_namespace(self): obj = Code.namespace(self.last_word) if obj: if obj.__doc__ is not None: self.prompt.set(obj.__doc__) else: self.promptlbl.place(x=9999, y=9999) def killall(self, event): """ Triggered by a Ctrl-. event """ Code.execute("Clock.clear()") return "break" def terminate(self): """ Overrides the close window event to make sure the TempoClock thread is properly stopped """ Code.execute("Clock.stop()") return
def submit(self, code_str): """ Overwrites the empty method to send a piece of FoxDot code to the environment. """ try: Code.execute(code_str) except: return
def submit(self, code_str): """ Overwrites the empty method to send a piece of FoxDot code to the environment. """ try: Code.execute( code_str ) except: return
def check_namespace(self): obj = Code.namespace(self.last_word) if obj: if obj.__doc__ is not None: self.prompt.set(obj.__doc__) else: self.promptlbl.place(x=9999, y=9999)
class interface(App): Code.execute("from FoxDot import *") Code.execute("Clock.start()") def __init__(self): App.__init__(self, "FoxDot - Live Coding with Python and SuperCollider") print "Welcome to FoxDot!" def submit(self, code_str): """ Overwrites the empty method to send a piece of FoxDot code to the environment. """ try: Code.execute(code_str) except: return def killall(self, event): """ Triggered by a Ctrl-. event """ Code.execute("Clock.clear()") return "break" def terminate(self): """ Overrides the close window event to make sure the TempoClock thread is properly stopped """ Code.execute("Clock.stop()") return