From 69fd37a5c4851e152b0f800b007586318ef7ef19 Mon Sep 17 00:00:00 2001 From: Dmitry Mikheev Date: Fri, 21 Apr 2017 22:21:05 +0500 Subject: [PATCH] 2make top webview accessable as well as main and bottom --- aqt/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/main.py b/aqt/main.py index 16bf8fe1a..f1a919e3f 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -509,7 +509,7 @@ title="%s" %s>%s''' % ( self.form = aqt.forms.main.Ui_MainWindow() self.form.setupUi(self) # toolbar - tweb = aqt.webview.AnkiWebView() + tweb = self.toolbarWeb = aqt.webview.AnkiWebView() tweb.title = "top toolbar" tweb.setFocusPolicy(Qt.WheelFocus) self.toolbar = aqt.toolbar.Toolbar(self, tweb)