Preferences/ConfigurationPages/HelpViewersPage.py

changeset 3190
a9a94491c4fd
parent 3187
e63c582ee4f5
child 3484
645c12de6b0c
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
17 from .Ui_HelpViewersPage import Ui_HelpViewersPage 17 from .Ui_HelpViewersPage import Ui_HelpViewersPage
18 18
19 import Preferences 19 import Preferences
20 import Utilities 20 import Utilities
21 import UI.PixmapCache 21 import UI.PixmapCache
22
22 23
23 class HelpViewersPage(ConfigurationPageBase, Ui_HelpViewersPage): 24 class HelpViewersPage(ConfigurationPageBase, Ui_HelpViewersPage):
24 """ 25 """
25 Class implementing the Help Viewers configuration page. 26 Class implementing the Help Viewers configuration page.
26 """ 27 """
78 """ 79 """
79 Private slot to handle the custom viewer selection. 80 Private slot to handle the custom viewer selection.
80 """ 81 """
81 file = E5FileDialog.getOpenFileName( 82 file = E5FileDialog.getOpenFileName(
82 self, 83 self,
83 self.trUtf8("Select Custom Viewer"), 84 self.tr("Select Custom Viewer"),
84 self.customViewerEdit.text(), 85 self.customViewerEdit.text(),
85 "") 86 "")
86 87
87 if file: 88 if file:
88 self.customViewerEdit.setText(Utilities.toNativeSeparators(file)) 89 self.customViewerEdit.setText(Utilities.toNativeSeparators(file))
92 """ 93 """
93 Private slot to handle the Web browser selection. 94 Private slot to handle the Web browser selection.
94 """ 95 """
95 file = E5FileDialog.getOpenFileName( 96 file = E5FileDialog.getOpenFileName(
96 self, 97 self,
97 self.trUtf8("Select Web-Browser"), 98 self.tr("Select Web-Browser"),
98 self.webbrowserEdit.text(), 99 self.webbrowserEdit.text(),
99 "") 100 "")
100 101
101 if file: 102 if file:
102 self.webbrowserEdit.setText(Utilities.toNativeSeparators(file)) 103 self.webbrowserEdit.setText(Utilities.toNativeSeparators(file))
106 """ 107 """
107 Private slot to handle the PDF viewer selection. 108 Private slot to handle the PDF viewer selection.
108 """ 109 """
109 file = E5FileDialog.getOpenFileName( 110 file = E5FileDialog.getOpenFileName(
110 self, 111 self,
111 self.trUtf8("Select PDF-Viewer"), 112 self.tr("Select PDF-Viewer"),
112 self.pdfviewerEdit.text(), 113 self.pdfviewerEdit.text(),
113 "") 114 "")
114 115
115 if file: 116 if file:
116 self.pdfviewerEdit.setText(Utilities.toNativeSeparators(file)) 117 self.pdfviewerEdit.setText(Utilities.toNativeSeparators(file))
120 """ 121 """
121 Private slot to handle the CHM viewer selection. 122 Private slot to handle the CHM viewer selection.
122 """ 123 """
123 file = E5FileDialog.getOpenFileName( 124 file = E5FileDialog.getOpenFileName(
124 self, 125 self,
125 self.trUtf8("Select CHM-Viewer"), 126 self.tr("Select CHM-Viewer"),
126 self.chmviewerEdit.text(), 127 self.chmviewerEdit.text(),
127 "") 128 "")
128 129
129 if file: 130 if file:
130 self.chmviewerEdit.setText(Utilities.toNativeSeparators(file)) 131 self.chmviewerEdit.setText(Utilities.toNativeSeparators(file))

eric ide

mercurial