Set up the split view between host list and editor.
(self)
| 146 | self.show_toast(message) |
| 147 | |
| 148 | def _setup_split_view(self): |
| 149 | """Set up the split view between host list and editor.""" |
| 150 | self.host_list = HostList() |
| 151 | self.host_editor = HostEditor() |
| 152 | try: |
| 153 | self.host_editor.set_app(self.app) |
| 154 | except Exception: |
| 155 | return |
| 156 | |
| 157 | paned = Gtk.Paned(orientation=Gtk.Orientation.HORIZONTAL) |
| 158 | paned.set_start_child(self.host_list) |
| 159 | paned.set_end_child(self.host_editor) |
| 160 | paned.set_position(400) |
| 161 | |
| 162 | self.main_box.append(paned) |
| 163 | |
| 164 | def _connect_signals(self): |
| 165 | """Connect all the signal handlers.""" |
nothing calls this directly
no test coverage detected