diff options
author | Michele Calgaro <[email protected]> | 2023-01-03 15:29:41 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-01-07 22:14:56 +0900 |
commit | 4ce11cc30df1805459a615960fdec204a975548a (patch) | |
tree | 084f1e1fa404bdf0d082b1a58acf392b5d177326 /examples/pytde-sampler/misc/window_info.py | |
parent | 065f41b4908b11278d4334e8c85150ec0fd4a9f6 (diff) | |
download | pytde-4ce11cc30df1805459a615960fdec204a975548a.tar.gz pytde-4ce11cc30df1805459a615960fdec204a975548a.zip |
Drop python2 support.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'examples/pytde-sampler/misc/window_info.py')
-rw-r--r-- | examples/pytde-sampler/misc/window_info.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/pytde-sampler/misc/window_info.py b/examples/pytde-sampler/misc/window_info.py index 12a9d66..df9a21c 100644 --- a/examples/pytde-sampler/misc/window_info.py +++ b/examples/pytde-sampler/misc/window_info.py @@ -25,11 +25,9 @@ class MainFrame(TQFrame): def showWindowInfo(self): - main = TDEApplication.kApplication() - print main - print main.mainWidget() + app = TDEApplication.kApplication() - info = KWindowInfo(main) - info.message('Updated Window Info', 3) + info = KWindowInfo(app.activeWindow()) + info.message('Updated Window Info', 3000) |