Commits

ar...@brand.medma  committed 449fb54

Added window system test code.

  • Participants
  • Parent commits 16c8ad2

Comments (0)

Files changed (1)

File testKdeWindowsystem.py

+#!/usr/bin/env python
+# encoding: utf-8
+
+"""Test what we can do with the KWIndowSystem"""
+
+from PyQt4.QtGui import QApplication
+from PyKDE4.kdeui import KWindowSystem, NET, NETWinInfo
+from sys import argv
+app = QApplication(argv)
+print KWindowSystem.windows()
+for i in KWindowSystem.windows(): 
+	print NETWinInfo(KWindowSystem.windowInfo(i, NET.WMName, NET.WMVisibleName)).pid()
+	print unicode(KWindowSystem.windowInfo(i, NET.WMName, NET.WMVisibleName).name()).split(),
+	print KWindowSystem.windowInfo(i, NET.WMName, NET.WMVisibleName).win() 
+	#KWindowSystem.forceActiveWindow(KWindowSystem.windowInfo(i, NET.WMName, NET.WMVisibleName).win() )