bczsalba / pytermgui

Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!
https://ptg.bczsalba.com
MIT License
2.16k stars 53 forks source link

Question regarding `ptg.InputField` #137

Closed Mahheshh closed 7 months ago

Mahheshh commented 7 months ago

How do I access the entered values

bczsalba commented 7 months ago

InputField.value is what you're looking for :)

Mahheshh commented 7 months ago

@bczsalba is there way to know which label I have selected using mouse(drag and select) or which label I am hovering over

bczsalba commented 7 months ago

Not really unfortunately, labels are meant to be unclickable by design. You could subclass Label and set _selectables_length to 1 to make it clickable (and thus available as parent.selected), but it won't get highlighted unless you implement that as well.

Mahheshh commented 7 months ago

alr

Mahheshh commented 7 months ago

is there any way I can make App reactive??