| 1 | from pytermgui import Overflow, WindowManager |
| 2 | from pytermgui.cmd import InspectorWindow, _configure_widgets, _create_aliases |
| 3 | |
| 4 | _create_aliases() |
| 5 | _configure_widgets() |
| 6 | |
| 7 | termage.resize(100, 67) |
| 8 | window = InspectorWindow(overflow=Overflow.RESIZE) |
| 9 | window.get_lines() |
| 10 | |
| 11 | with WindowManager() as manager: |
| 12 | manager.layout.add_slot() |
| 13 | manager.add(window) |
| 14 | |
| 15 | # This is a hack to get around InputField cursor position starting near the middle; |
| 16 | # We draw once, then the second draw done by Termage will be correct. |
| 17 | manager.compositor.draw() |