Update the text widgets' font if it is changed
(self)
| 830 | self.text['insertofftime'] = idleConf.blink_off_time |
| 831 | |
| 832 | def ResetFont(self): |
| 833 | "Update the text widgets' font if it is changed" |
| 834 | # Called from configdialog.py |
| 835 | |
| 836 | # Update the code context widget first, since its height affects |
| 837 | # the height of the text widget. This avoids double re-rendering. |
| 838 | if self.code_context is not None: |
| 839 | self.code_context.update_font() |
| 840 | # Next, update the line numbers widget, since its width affects |
| 841 | # the width of the text widget. |
| 842 | if self.line_numbers is not None: |
| 843 | self.line_numbers.update_font() |
| 844 | # Finally, update the main text widget. |
| 845 | new_font = idleConf.GetFont(self.root, 'main', 'EditorWindow') |
| 846 | self.text['font'] = new_font |
| 847 | self.set_width() |
| 848 | |
| 849 | def RemoveKeybindings(self): |
| 850 | """Remove the virtual, configurable keybindings. |
nothing calls this directly
no test coverage detected