7 Module implementing the Help web browser configuration page. |
7 Module implementing the Help web browser configuration page. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt4.QtCore import qVersion, pyqtSlot |
10 from PyQt4.QtCore import qVersion, pyqtSlot |
11 |
11 |
12 from ConfigurationPageBase import ConfigurationPageBase |
12 from .ConfigurationPageBase import ConfigurationPageBase |
13 from Ui_HelpWebBrowserPage import Ui_HelpWebBrowserPage |
13 from .Ui_HelpWebBrowserPage import Ui_HelpWebBrowserPage |
14 |
14 |
15 import Helpviewer.HelpWindow |
15 import Helpviewer.HelpWindow |
16 |
16 |
17 import Preferences |
17 import Preferences |
18 |
18 |
165 def on_setCurrentPageButton_clicked(self): |
165 def on_setCurrentPageButton_clicked(self): |
166 """ |
166 """ |
167 Private slot to set the current page as the home page. |
167 Private slot to set the current page as the home page. |
168 """ |
168 """ |
169 url = self.__helpWindow.currentBrowser().url() |
169 url = self.__helpWindow.currentBrowser().url() |
170 self.homePageEdit.setText(unicode(url.toEncoded())) |
170 self.homePageEdit.setText(bytes(url.toEncoded()).decode()) |
171 |
171 |
172 @pyqtSlot() |
172 @pyqtSlot() |
173 def on_defaultHomeButton_clicked(self): |
173 def on_defaultHomeButton_clicked(self): |
174 """ |
174 """ |
175 Private slot to set the default home page. |
175 Private slot to set the default home page. |