Closed skorokithakis closed 2 years ago
Where is that bit of code from? No idea why it's like this and why no one has caught it yet.
Good tip about the manager.add
function, will look into putting it somewhere more obvious.
Oh, it's from here: https://ptg.bczsalba.com/pytermgui.html (the "Adding windows during definition" one), sorry!
Thank you for the reference! I updated the docs to fix the issue, but the update will only be pushed with the next release, as some of the updates since 3.1.0 contain some changes that would be documented before they are pushed.
The documentation snipped here is invalid Python code:
Also, the examples on the front page are nice for illustrating the various ways of declaring an interface, but when trying to run them I was taken aback by the fact that a window wouldn't launch. I eventually found the
manager.add()
function, but it would be nice if that were in the README somewhere so people could quickly try the framework out.