This commit is contained in:
Kovid Goyal 2021-01-21 20:43:52 +05:30
parent 2b8ed93987
commit 8f38ba50e1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -432,7 +432,7 @@ class TemplateDialog(QDialog, Ui_TemplateDialog):
self.template_value.setText( self.template_value.setText(
SafeFormat().safe_format(cur_text, self.mi, _('EXCEPTION: '), SafeFormat().safe_format(cur_text, self.mi, _('EXCEPTION: '),
self.mi, global_vars=self.global_vars, self.mi, global_vars=self.global_vars,
template_functions= self.all_functions)) template_functions=self.all_functions))
def text_cursor_changed(self): def text_cursor_changed(self):
cursor = self.textbox.textCursor() cursor = self.textbox.textCursor()

View File

@ -10,4 +10,4 @@ from PyQt5.Qt import (QBoxLayout)
class BoxLayout(QBoxLayout): class BoxLayout(QBoxLayout):
def __init__(self): def __init__(self):
QBoxLayout.__init__(self, QBoxLayout.Direction.TopToBottom) QBoxLayout.__init__(self, QBoxLayout.Direction.TopToBottom)