9 reSimplify
= re
.compile(" +")
10 def simplifySpaces(txt
):
11 return reSimplify
.sub(" ", txt
)
17 sin
, sout
= os
.popen2(cmd
)
19 lines
= [simplifySpaces(x
.strip()) for x
in sout
.readlines()]
24 """0x032000e1 0 cpc6128 Qt Designer"""
25 lines
= runWmCtrl("-l")
28 tokens
= line
.split(" ")
30 text
= " ".join(tokens
[3:])
31 if text
not in BLACKLIST
:
32 lst
.append( (text
, wid
) )
36 def switchToWindow(wid
):