weather_gui.py 文件源码

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

项目:Weather-App 作者: Tomasz-Kluczkowski 项目源码 文件源码
def imperial_pushed(self):
        """Activates imperial units and changes the look of the units
        buttons.

        Returns:
            None
        """
        if self.v_link["var_units"].get() == "metric":
            self.v_link["var_units"].set("imperial")
            self.controller.update_buttons()

            if all([self.controller.data_present,
                    self.v_link["error_status"] == 0,
                    threading.active_count() < 2]):
                self.v_link["scrollbar_offset"] = self.yscrollbar.get()
                self.controller.show_display("imperial")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号