From 4e902d18d0c46c0f116e57e5996c4167f8600e1f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 31 Jul 2014 18:37:16 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/preferences.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/calibre/gui2/tweak_book/preferences.py b/src/calibre/gui2/tweak_book/preferences.py index f5c3f9fdfd..a383ca62d8 100644 --- a/src/calibre/gui2/tweak_book/preferences.py +++ b/src/calibre/gui2/tweak_book/preferences.py @@ -178,6 +178,10 @@ class EditorSettings(BasicSettings): tw.setMinimum(2), tw.setSuffix(_(' characters')), tw.setMaximum(20) l.addRow(_('Width of &tabs:'), tw) + self.tb = b = QPushButton(_('Change &templates')) + l.addRow(_('Templates for new files:'), b) + b.clicked.connect(lambda : TemplatesDialog(self).exec_()) + lw = self('editor_line_wrap') lw.setText(_('&Wrap long lines in the editor')) l.addRow(lw) @@ -201,10 +205,6 @@ class EditorSettings(BasicSettings): ' time you open a HTML/CSS/etc. file for editing.')) l.addRow(lw) - self.tb = b = QPushButton(_('Change &templates')) - l.addRow(_('Change the templates for creating new files:'), b) - b.clicked.connect(lambda : TemplatesDialog(self).exec_()) - lw = self('inline_spell_check') lw.setText(_('Show misspelled words underlined in the code view')) lw.setToolTip('

' + _(