pytermgui icon indicating copy to clipboard operation
pytermgui copied to clipboard

[HOWTO] How can I use the terminal widget?

Open agoodfellow123 opened this issue 1 year ago • 0 comments
trafficstars

I want to create an environment like the Twin Terminal Window Manager for that I must understand how to use the terminal widget, I'm trying to spawn it with:

from pytermgui import WindowManager, Window, Terminal, widgets

manager = WindowManager()
terminal = widgets.Widget.terminal
window = (terminal)
manager.add(terminal)
manager.run()

however unfortunately that just gives me the AttributeError: 'property' object has no attribute 'manager' error. Can you please explain step by step what I'm doing wrong?

agoodfellow123 avatar Jan 18 '24 12:01 agoodfellow123