Пример #1
0
        def terminate(self):
            """ Overrides the close window event to make sure
                the TempoClock thread is properly stopped """

            Code.execute("Clock.stop()")

            return
Пример #2
0
        def killall(self, event):

            """ Triggered by a Ctrl-. event """
            
            Code.execute("Clock.clear()")
        
            return "break"
Пример #3
0
        def terminate(self):

            """ Overrides the close window event to make sure
                the TempoClock thread is properly stopped """

            Code.execute("Clock.stop()")

            return
Пример #4
0
    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
Пример #5
0
        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
Пример #6
0
        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
Пример #7
0
        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)
Пример #8
0
        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)
Пример #9
0
    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
Пример #10
0
        def killall(self, event):
            """ Triggered by a Ctrl-. event """

            Code.execute("Clock.clear()")

            return "break"