ceccopierangiolieugenio / pyTermTk

Python Terminal Toolkit - a Spiced Up Cross Compatible TUI Library 🌶️
https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/
MIT License
598 stars 23 forks source link

Force Window Focus #107

Closed nickandwolf closed 1 year ago

nickandwolf commented 1 year ago

Hello! Is there a window.focus() command or something to force a window to be up front? Sometimes when I make a new window, an area 'behind' it takes the focus away.

ceccopierangiolieugenio commented 1 year ago

you can try "raiseWidget()" method available on all the widgets.

https://github.com/ceccopierangiolieugenio/pyTermTk/blob/5626955393f492cddb568cbe7a5fa150f4acc5e5/TermTk/TTkWidgets/widget.py#L418-L420

nickandwolf commented 1 year ago

That was it! Thank you!