From 6c0b9ec38b85241867cbc14e959eb1d5f7c61a48 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 26 Nov 2013 21:11:55 +0530 Subject: [PATCH] Show an about message when the preview panel is cleared --- src/calibre/gui2/tweak_book/preview.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/preview.py b/src/calibre/gui2/tweak_book/preview.py index 645d65a9da..3c1aedbb21 100644 --- a/src/calibre/gui2/tweak_book/preview.py +++ b/src/calibre/gui2/tweak_book/preview.py @@ -381,7 +381,19 @@ class WebView(QWebView): return property(fget=fget, fset=fset) def clear(self): - self.setHtml('

') + self.setHtml(_( + ''' +

Live preview

+ +

Here you will see a live preview of the HTML file you are currently editing. + The preview will update automatically as you make changes. + +

Note that this is a quick preview + only, it is not intended to simulate an actual ebook reader. Some + aspects of your ebook will not work, such as, page breaks, + page margins and embedded fonts that use font name aliasing. + + ''')) def inspect(self): self.inspector.parent().show()