回答編集履歴
1
表現を変更
answer
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
PyQt環境が用意できず試せていないのですが
|
3
3
|
同様のことをやっているサイトを見つけました。
|
4
4
|
|
5
|
-
`QtCore.QEvent.WindowDeactivate`(
|
5
|
+
`QtCore.QEvent.WindowDeactivate`(ウィンドウが非アクティブになったイベント)で
|
6
|
-
`self.activateWindow()`(ウィンドウをアクティブ
|
6
|
+
`self.activateWindow()`(ウィンドウをアクティブにする)を実行しています。
|
7
7
|
|
8
8
|
参考:[python - PyQt Window Focus - Stack Overflow](https://stackoverflow.com/questions/12280815/pyqt-window-focus)
|