示例#1
0
文件: main.py 项目: aisis/FoxDotCode
        def terminate(self):
            """ Overrides the close window event to make sure
                the TempoClock thread is properly stopped """

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

            return
示例#2
0
文件: main.py 项目: aisis/FoxDotCode
        def killall(self, event):

            """ Triggered by a Ctrl-. event """
            
            Code.execute("Clock.clear()")
        
            return "break"
示例#3
0
文件: main.py 项目: aisis/FoxDotCode
        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
文件: main.py 项目: aisis/FoxDotCode
        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
文件: main.py 项目: aisis/FoxDotCode
        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
文件: main.py 项目: Scinawa/FoxDot
        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
文件: main.py 项目: aisis/FoxDotCode
    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
文件: main.py 项目: aisis/FoxDotCode
        def killall(self, event):
            """ Triggered by a Ctrl-. event """

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

            return "break"