diff options
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) |