|
11 | 11 |
|
12 | 12 | from PyQt5.QtWidgets import (QDialog, QLineEdit, QFormLayout, |
13 | 13 | QSpinBox, QCheckBox, QPushButton, |
14 | | - QVBoxLayout, QHBoxLayout) |
| 14 | + QVBoxLayout, QHBoxLayout, QGroupBox) |
15 | 15 |
|
16 | 16 | from pugdebug.models.settings import (get_setting, set_setting, |
17 | 17 | get_default_setting) |
@@ -97,22 +97,31 @@ def __init__(self, parent): |
97 | 97 | self.reset_button = QPushButton("Reset to defaults") |
98 | 98 | self.reset_button.clicked.connect(self.reset_defaults) |
99 | 99 |
|
100 | | - form_layout = QFormLayout() |
101 | | - form_layout.addRow("Root:", self.project_root) |
102 | | - form_layout.addRow("Maps from:", self.path_mapping) |
103 | | - form_layout.addRow("Host", self.host) |
104 | | - form_layout.addRow("Port", self.port_number) |
105 | | - form_layout.addRow("IDE Key", self.idekey) |
106 | | - form_layout.addRow("", self.break_at_first_line) |
107 | | - form_layout.addRow("Max depth", self.max_depth) |
108 | | - form_layout.addRow("Max children", self.max_children) |
109 | | - form_layout.addRow("Max data", self.max_data) |
| 100 | + path_layout = QFormLayout() |
| 101 | + path_layout.addRow("Root:", self.project_root) |
| 102 | + path_layout.addRow("Maps from:", self.path_mapping) |
| 103 | + |
| 104 | + debugger_layout = QFormLayout() |
| 105 | + debugger_layout.addRow("Host", self.host) |
| 106 | + debugger_layout.addRow("Port", self.port_number) |
| 107 | + debugger_layout.addRow("IDE Key", self.idekey) |
| 108 | + debugger_layout.addRow("", self.break_at_first_line) |
| 109 | + debugger_layout.addRow("Max depth", self.max_depth) |
| 110 | + debugger_layout.addRow("Max children", self.max_children) |
| 111 | + debugger_layout.addRow("Max data", self.max_data) |
| 112 | + |
| 113 | + path_group = QGroupBox("Path") |
| 114 | + path_group.setLayout(path_layout) |
| 115 | + |
| 116 | + debugger_group = QGroupBox("Debugger") |
| 117 | + debugger_group.setLayout(debugger_layout) |
110 | 118 |
|
111 | 119 | button_layout = QHBoxLayout() |
112 | 120 | button_layout.addWidget(self.reset_button) |
113 | 121 |
|
114 | 122 | box_layout = QVBoxLayout() |
115 | | - box_layout.addLayout(form_layout) |
| 123 | + box_layout.addWidget(path_group) |
| 124 | + box_layout.addWidget(debugger_group) |
116 | 125 | box_layout.addLayout(button_layout) |
117 | 126 |
|
118 | 127 | self.setLayout(box_layout) |
|
0 commit comments