Differential D4715 Diff 11612 plugins/extensions/pykrita/plugin/plugins/scripter/ui_scripter/actions/settingsaction/settingsdialog.py
Changeset View
Changeset View
Standalone View
Standalone View
plugins/extensions/pykrita/plugin/plugins/scripter/ui_scripter/actions/settingsaction/settingsdialog.py
1 | # -*- coding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | 3 | | |||
4 | from PyQt5.QtWidgets import * | 4 | from PyQt5.QtWidgets import * | ||
5 | from . import syntaxstylescombobox, fontscombobox | 5 | from . import syntaxstylescombobox, fontscombobox | ||
6 | 6 | | |||
7 | 7 | | |||
8 | class SettingsDialog(QDialog): | 8 | class SettingsDialog(QDialog): | ||
9 | 9 | | |||
10 | def __init__(self, scripter, parent=None): | 10 | def __init__(self, scripter, parent=None): | ||
11 | super(SettingsDialog, self).__init__(parent) | 11 | super(SettingsDialog, self).__init__(parent) | ||
12 | 12 | | |||
13 | self.scripter = scripter | 13 | self.scripter = scripter | ||
14 | self.setWindowTitle('Settings') | ||||
14 | self.mainLayout = QFormLayout(self) | 15 | self.mainLayout = QFormLayout(self) | ||
15 | self.mainLayout.addRow('Syntax Highlither', syntaxstylescombobox.SyntaxStylesComboBox(self.scripter.uicontroller.highlight)) | 16 | self.mainLayout.addRow('Syntax Highlither', syntaxstylescombobox.SyntaxStylesComboBox(self.scripter.uicontroller.highlight)) | ||
16 | self.mainLayout.addRow('Fonts', fontscombobox.FontsComboBox(self.scripter.uicontroller.editor)) | 17 | self.mainLayout.addRow('Fonts', fontscombobox.FontsComboBox(self.scripter.uicontroller.editor)) |