Preferences/ConfigurationPages/ViewmanagerPage.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
equal deleted inserted replaced
3456:96232974dcdb 3484:645c12de6b0c
39 currentVm = Preferences.getViewManager() 39 currentVm = Preferences.getViewManager()
40 40
41 keys = sorted(self.viewmanagers.keys()) 41 keys = sorted(self.viewmanagers.keys())
42 for key in keys: 42 for key in keys:
43 self.windowComboBox.addItem( 43 self.windowComboBox.addItem(
44 self.trUtf8(self.viewmanagers[key]), key) 44 self.tr(self.viewmanagers[key]), key)
45 currentIndex = self.windowComboBox.findText( 45 currentIndex = self.windowComboBox.findText(
46 self.trUtf8(self.viewmanagers[currentVm])) 46 self.tr(self.viewmanagers[currentVm]))
47 self.windowComboBox.setCurrentIndex(currentIndex) 47 self.windowComboBox.setCurrentIndex(currentIndex)
48 self.on_windowComboBox_activated(currentIndex) 48 self.on_windowComboBox_activated(currentIndex)
49 49
50 self.tabViewGroupBox.setTitle( 50 self.tabViewGroupBox.setTitle(
51 self.trUtf8(self.viewmanagers["tabview"])) 51 self.tr(self.viewmanagers["tabview"]))
52 52
53 self.filenameLengthSpinBox.setValue( 53 self.filenameLengthSpinBox.setValue(
54 Preferences.getUI("TabViewManagerFilenameLength")) 54 Preferences.getUI("TabViewManagerFilenameLength"))
55 self.filenameOnlyCheckBox.setChecked( 55 self.filenameOnlyCheckBox.setChecked(
56 Preferences.getUI("TabViewManagerFilenameOnly")) 56 Preferences.getUI("TabViewManagerFilenameOnly"))

eric ide

mercurial