From 4ce11cc30df1805459a615960fdec204a975548a Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 3 Jan 2023 15:29:41 +0900 Subject: Drop python2 support. Signed-off-by: Michele Calgaro --- examples/pytde-sampler/misc/window_info.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'examples/pytde-sampler/misc/window_info.py') 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) -- cgit v1.2.1