python类app()的实例源码

main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 26 收藏 0 点赞 0 评论 0
def add_infosizeclock(obj): #use on_release: app.add_infosizeclock() to call
        global clock
        clock = 2
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def add_wormsizeclock(obj): #use on_release: app.add_wormsizeclock() to call
        global clock
        clock = 3
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def add_menuclock(obj): #use on_release: app.add_menuclock() to call
        global clock
        clock = 4
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def add_analog(obj): #use on_release: app.add_analog() to call
        global analog
        analog = 1
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def add_classicanalog(obj): #use on_release: app.add_classicanalog() to call
        global analog
        analog = 2
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def add_sportanalog(obj): #use on_release: app.add_sportanalog() to call
        global analog
        analog = 3
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def add_executiveanalog(obj): #use on_release: app.add_executiveanalog() to call
        global analog
        analog = 4
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def add_daygaugeanalog(obj): #use on_release: app.add_daygaugeanalog() to call
        global analog
        analog = 5
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def add_wormanalog(obj): #use on_release: app.add_wormanalog() to call
        global analog
        analog = 6
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def add_launchanalog(obj): #use on_release: app.add_launchanalog() to call - used to create the lights on the xmas tree drag lights
        global analog
        global time_second_mod
        global launch_start_time
        analog = 7
        launch_start_time = int(float(time_second_mod)) #sets a reference time for launch control timing

    #OBD themes
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def kill_message(obj): #use on_release: app.kill_message() to call
        global message
        message = 0
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def add_message_temp(obj): #use on_release: app.add_message_temp() to call
        global message
        message = 1
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def add_message_stopwatch(obj): #use on_release: app.add_message_stopwatch() to call
        global message
        message = 2
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def add_message_hotkeystrings(obj): #use on_release: app.add_message_hotkeystrings() to call
        global message
        message = 4
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def add_message_radarstatus(obj): #use on_release: app.add_message_radarstatus() to call
        global message
        message = 5


    #stopwatch button functions
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def stopwatch_start(obj): #use on_release: app.stopwatch_start() to call
        global swactive
        swactive = 1
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def stopwatch_stop(obj): #use on_release: app.stopwatch_start() to call
        global swactive
        swactive = 0
main.py 文件源码 项目:CoPilot-InfotainmentSystem 作者: Joelzeller 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
def stopwatch_reset(obj): #use on_release: app.stopwatch_start() to call
        global swactive
        global swminute
        global swsecond
        global swtenth
        swactive = 0
        swminute = 0
        swsecond = 0
        swtenth = 0

    #hot key 1 settings functions
registrar.py 文件源码 项目:SnapchatClone 作者: FOC96 项目源码 文件源码 阅读 27 收藏 0 点赞 0 评论 0
def do_registrar(self, userName, userNickName, userPassword):
        a = SnapDB()

        if userName == "" or userNickName == "" or userPassword == "":
            popup = Popup(title='Missing fields', content=Label(text='You\'re missing some fields, try again.'), size_hint=(None, None), size=(350, 200))
            popup.open()
        else:
            a.addUser(name=userName, nickName=userNickName, password=userPassword)
            app = App.get_running_app()

            self.manager.transition = SlideTransition(direction="left")
            self.manager.current = 'login'
main.py 文件源码 项目:SnapchatClone 作者: FOC96 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def do_inicio(self):
        app = App.get_running_app()

        self.manager.transition = SlideTransition(direction="left")
        self.manager.current = 'login'


问题


面经


文章

微信
公众号

扫码关注公众号