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.25k stars 56 forks source link

[BUG] Can't paste text to InputField #117

Closed mjozefcz closed 1 year ago

mjozefcz commented 1 year ago

Describe the bug I would like to paste text to InputField, but its not working.

To Reproduce Steps to reproduce the behavior:

import pytermgui as ptg

window_manager = ptg.WindowManager()
window_manager.layout = ptg.Layout()

svc_name_window = ptg.Window(width=70, height=5, title="Service Name")
svc_name_window.is_modal = True
svc_name_window.center()
svc_name_window += ptg.Label()
service_name_field = ptg.InputField(prompt="Service Name: ")
svc_name_window += service_name_field
svc_name_window += ptg.Label()
svc_name_window += ptg.Button("OK")

window_manager.add(svc_name_window)
window_manager.run()
bczsalba commented 1 year ago

Sorry about the delay, should be fixed now!

mjozefcz commented 1 year ago

No worries ;) I can confirm that it works!

Thanks!