def set_font(self, value=None): # TODO {24, 19, 18, 17 | 0 | -15 -11 -4 -3 -2}) new_font_key = (value, self.gui.get_arg('textbox'))[value is None] self._font = font_dict()['textbox'][new_font_key] self.config(font=self._font) # print('Textbox metrics:\t', self._font.metrics()) # TODO: test on [windows 10, mac OSX] if value is not None: self.gui.set_arg('textbox', new_font_key)
def set_font(self, value=None): new_font_key = (value, self.gui.get_arg('toolbar'))[value is None] self._font = parameters.font_dict()['toolbar'][new_font_key] # print('Toolbar metrics:\t', self._font.metrics()) # TODO: test on [windows 10, mac OSX] if value is not None: self.gui.set_arg('toolbar', new_font_key) self.opened_frame.update_font(new_font_key) self.toolbar_buttons.set_font(new_font_key)
def update_font(self, new_font_key): self._font = font_dict()['toolbar'][new_font_key] self.textbox_label.config(font=self._font) self.textbox_scale.config(font=self._font) self.toolbar_label.config(font=self._font) self.toolbar_scale.config(font=self._font) self.windows_label.config(font=self._font) self.windows_scale.config(font=self._font)
def set_font(self, value=None): new_font_key = (value, self.gui.get_arg('windows'))[value is None] self._font = font_dict()['windows'][new_font_key] # print('WindowManager metrics:\t', self._font.metrics()) # TODO: test on [windows 10, mac OSX] if value is not None: self.gui.set_arg('windows', new_font_key) for key in self.buttons.keys(): self.buttons[key].config(font=self._font)
def set_font(self, value=None): new_font_key = (value, self.gui.get_arg('toolbar'))[value is None] self._font = parameters.font_dict()['toolbar'][new_font_key] for key in self.buttons.keys(): self.buttons[key].config(font=self._font)