I haven't kept up with the latest progress. In my previous code, I created
a textedit panel to output something.
```python
w = c.frame.body.widget
while not isinstance(w, NestedSplitter):
w = w.parent()
something_log = w.find_child(QtWidgets.QTextEdit, "something_log")
if something_log == None:
self.something_log = QtWidgets.QTextEdit()
self.something_log.setObjectName('something_log')
w.insert(-1, self.something_log)
```
Regarding the recent changes, I try to fix it.
```python
w = c.frame.body.widget
while not isinstance(w, QSplitter):
w = w.parent()
something_log = w.findChild(QtWidgets.QTextEdit, "something_log")
if something_log == None:
self.something_log = QtWidgets.QTextEdit()
self.something_log.setObjectName('something_log')
w.addWidget(self.something_log)
```
It works. But I'm not sure, is there anything else I need to pay attention
to? The original code maybe copy from Thomas, I don't remember :D I don’t
have the guts to study layout yet
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/leo-editor/4df970b3-2070-4224-8f3c-fd3682a856fdn%40googlegroups.com.