pigrow_remote.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:Pigrow 作者: Pragmatismo 项目源码 文件源码
def blank_settings(self):
        print("clearing settings")
        # clear system pannel text
        system_info_pnl.sys_hdd_total.SetLabel("")
        system_info_pnl.sys_hdd_remain.SetLabel("")
        system_info_pnl.sys_hdd_used.SetLabel("")
        system_info_pnl.sys_pigrow_folder.SetLabel("")
        system_info_pnl.sys_os_name.SetLabel("")
        #system_info_pnl.sys_pigrow_version.SetLabel("")
        system_info_pnl.sys_pigrow_update.SetLabel("")
        system_info_pnl.sys_network_name.SetLabel("")
        system_info_pnl.wifi_list.SetLabel("")
        system_info_pnl.sys_power_status.SetLabel("")
        system_info_pnl.sys_camera_info.SetLabel("")
        system_info_pnl.sys_pi_revision.SetLabel("")
        system_info_pnl.sys_pi_date.SetLabel("")
        system_info_pnl.sys_pc_date.SetLabel("")
        #system_info_pnl.sys_time_diff.SetLabel("")
        # clear config ctrl text and tables
        try:
            MainApp.config_ctrl_pannel.dirlocs_dict.clear()
            MainApp.config_ctrl_pannel.config_dict.clear()
            MainApp.config_ctrl_pannel.gpio_dict.clear()
            MainApp.config_ctrl_pannel.gpio_on_dict.clear()
        except:
            pass
        MainApp.config_info_pannel.gpio_table.DeleteAllItems()
        config_info_pnl.boxname_text.SetValue("")
        config_info_pnl.location_text.SetLabel("")
        config_info_pnl.config_text.SetLabel("")
        config_info_pnl.lamp_text.SetLabel("")
        config_info_pnl.dht_text.SetLabel("")
        # clear cron tables
        cron_list_pnl.startup_cron.DeleteAllItems()
        cron_list_pnl.repeat_cron.DeleteAllItems()
        cron_list_pnl.timed_cron.DeleteAllItems()
        # clear local files text and images
        localfiles_info_pnl.cron_info.SetLabel("")
        localfiles_info_pnl.local_path_txt.SetLabel("")
        localfiles_info_pnl.folder_text.SetLabel("") ## check this updates on reconnect
        localfiles_info_pnl.photo_text.SetLabel("")
        localfiles_info_pnl.first_photo_title.SetLabel("")
        localfiles_info_pnl.last_photo_title.SetLabel("")

        blank = wx.EmptyBitmap(220, 220)
        try:
            localfiles_info_pnl.photo_folder_first_pic.SetBitmap(blank)
            localfiles_info_pnl.photo_folder_last_pic.SetBitmap(blank)
        except:
            pass
        # clear local file info
        localfiles_info_pnl.local_path = ""
        localfiles_info_pnl.config_files.DeleteAllItems()
        localfiles_info_pnl.logs_files.DeleteAllItems()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号