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