linux - Bring terminal to the front in Python -
is there way bring linux terminal front of screen python script? possibly using kind of os. command
i.e - python script opens gui fills screen, if event happens want see printed in terminal viewed, don't want / can't show information on gui (so please don't suggest that)
and if possible, hide behind other windows again, if needed.
(python 2, way)
any suggestions appreciated.
that "bring linux terminal front of screen" talking terminal emulators running in x window environment. accomplished making request window manager. there more 1 way this.
- xterm (and other terminal emulators) implement sun control sequences window manipulation (from 1980s) reimplemented in dtterm during 1990s. xterm has done since 1996 (patch #18).
- python: xlib — how can raise(bring top) windows? mentions wmctl, command-line tool allows make various requests window manager.
- xdotool command-line tool performs similar requests.
- finally, can wm raise or lower windows? points out can write own application (and because python can use shared libraries written in c, write script using x library).
Comments
Post a Comment