PyKDE - Python Bindings for KDE
class KWin
Table of contents
Modules
kdecore Classes
All Classes
Module
kdecore
Class
KWin
Inherits
enums
IconSource
= {NETWM = 1, WMHints = 2, ClassHint = 4, XApp = 8 }
methods
activateWindow
(win, time = 0)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
win
WId
time
long
0
allowedActionsSupported
()
returns
(bool)
In versions KDE 3.2.0 and above only
static
appStarted
()
returns
nothing
static
clearState
(win, state)
returns
nothing
static
Argument
Type
Default
win
WId
state
ulong
currentDesktop
()
returns
(int)
static
deIconifyWindow
(win, animation = 1)
returns
nothing
static
Argument
Type
Default
win
WId
animation
bool
1
demandAttention
(win, set = 1)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
win
WId
set
bool
1
forceActiveWindow
(win, time = 0)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
win
WId
time
long
0
groupLeader
(window)
returns
(WId)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
window
WId
icccmCompliantMappingState
()
returns
(bool)
In versions KDE 3.2.0 and above only
static
icon
(win, width = -1, height = -1, scale = 0)
returns
(QPixmap)
static
Argument
Type
Default
win
WId
width
int
-1
height
int
-1
scale
bool
0
icon
(win, width, height, scale, flags)
returns
(QPixmap)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
win
WId
width
int
height
int
scale
bool
flags
int
iconifyWindow
(win, animation = 1)
returns
nothing
static
Argument
Type
Default
win
WId
animation
bool
1
info
(win)
returns
(KWin.Info)
static
Argument
Type
Default
win
WId
invokeContextHelp
()
returns
nothing
static
lowerWindow
(win)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
win
WId
numberOfDesktops
()
returns
(int)
static
raiseWindow
(win)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
win
WId
readNameProperty
(window, atom)
returns
(QString)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
window
WId
atom
ulong
setActiveWindow
(win)
returns
nothing
static
Argument
Type
Default
win
WId
setCurrentDesktop
(desktop)
returns
nothing
static
Argument
Type
Default
desktop
int
setIcons
(win, icon, miniIcon)
returns
nothing
static
Argument
Type
Default
win
WId
icon
QPixmap
miniIcon
QPixmap
setOnAllDesktops
(win, b)
returns
nothing
static
Argument
Type
Default
win
WId
b
bool
setOnDesktop
(win, desktop)
returns
nothing
static
Argument
Type
Default
win
WId
desktop
int
setState
(win, state)
returns
nothing
static
Argument
Type
Default
win
WId
state
ulong
setStrut
(win, left, right, top, bottom)
returns
nothing
static
Argument
Type
Default
win
WId
left
int
right
int
top
int
bottom
int
setSystemTrayWindowFor
(trayWin, forWin)
returns
nothing
static
Argument
Type
Default
trayWin
WId
forWin
WId
setType
(win, windowType)
returns
nothing
static
Argument
Type
Default
win
WId
windowType
NET.WindowType
setUserTime
(win, time)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
win
WId
time
long
transientFor
(window)
returns
(WId)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
window
WId
windowInfo
(win, properties = 0, properties2 = 0)
returns
(KWin.WindowInfo)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
win
WId
properties
ulong
0
properties2
ulong
0