ar...@brand.medma  committed 449fb54

Added window system test code.

  • Participants
  • Parent commits 16c8ad2
  • Branches default

Comments (0)

Files changed (1)


+#!/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)
+for i in 
+	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() )