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")
评论列表
文章目录