PyKDE - Python Bindings for KDE
class KMainWindow
Table of contents
Modules
tdeui Classes
All Classes
Module
tdeui
Class
KMainWindow
Inherits
TQMainWindow, KXMLGUIBuilder, KXMLGUIClient
enums
CreationFlags
= {NoDCOPObject }
StandardWindowOptions
= {ToolBar, Keys, StatusBar, Save, Create }
methods
KMainWindow
(parent = 0, name = 0, f = WType_TopLevel | WDestructiveClose)
returns
a KMainWindow instance
Argument
Type
Default
parent
TQWidget
0
name
char
0
f
WFlags
WType_TopLevel | WDestructiveClose
KMainWindow
(cflags, parent = 0, name = 0, f = WType_TopLevel | WDestructiveClose)
returns
a KMainWindow instance
In versions KDE 3.2.0 and above only
Argument
Type
Default
cflags
int
parent
TQWidget
0
name
char
0
f
WFlags
WType_TopLevel | WDestructiveClose
accel
()
returns
(KAccel)
appHelpActivated
()
returns
nothing
applyMainWindowSettings
(config, groupName, force)
returns
nothing
In versions KDE 3.3.0 and above only
Argument
Type
Default
config
KConfig
groupName
TQString
force
bool
applyMainWindowSettings
(config, groupName = TQString .null)
returns
nothing
Argument
Type
Default
config
KConfig
groupName
TQString
TQString .null
autoSaveGroup
()
returns
(TQString)
In versions KDE 3.1.0 and above only
autoSaveSettings
()
returns
(bool)
In versions KDE 3.1.0 and above only
canBeRestored
(number)
returns
(bool)
static
Argument
Type
Default
number
int
childEvent
(e)
returns
nothing
Argument
Type
Default
e
TQChildEvent
classNameOfToplevel
(number)
returns
(TQString)
static
Argument
Type
Default
number
int
closeEvent
(a0)
returns
nothing
Argument
Type
Default
a0
TQCloseEvent
configureToolbars
()
returns
(int)
In versions KDE 3.3.0 and above only
createGUI
(xmlfile = TQString .null, _conserveMemory = 1)
returns
nothing
Argument
Type
Default
xmlfile
TQString
TQString .null
_conserveMemory
bool
1
createStandardStatusBarAction
()
returns
nothing
In versions KDE 3.2.0 and above only
customHelpMenu
(showWhatsThis = 1)
returns
(KPopupMenu)
Argument
Type
Default
showWhatsThis
bool
1
finalizeGUI
(client)
returns
nothing
In versions KDE 3.1.0 and above only
Argument
Type
Default
client
KXMLGUIClient
finalizeGUI
(force)
returns
nothing
Argument
Type
Default
force
bool
getMemberList
()
returns
(TQPtrList
)
In versions KDE 3.4.0 and above only
static
guiFactory
()
returns
(KXMLGUIFactory)
hasMenuBar
()
returns
(bool)
In versions KDE 3.1.0 and above only
helpMenu
(aboutAppText = TQString .null, showWhatsThis = 1)
returns
(KPopupMenu)
Argument
Type
Default
aboutAppText
TQString
TQString .null
showWhatsThis
bool
1
hide
()
returns
nothing
In versions KDE 3.2.0 and above only
ignoreInitialGeometry
()
returns
nothing
In versions KDE 3.2.0 and above only
initialGeometrySet
()
returns
(bool)
isHelpMenuEnabled
()
returns
(bool)
isStandardToolBarMenuEnabled
()
returns
(bool)
In versions KDE 3.1.0 and above only
menuBar
()
returns
(KMenuBar)
paintEvent
(e)
returns
nothing
Argument
Type
Default
e
TQPaintEvent
parseGeometry
(parsewidth)
returns
nothing
Argument
Type
Default
parsewidth
bool
queryClose
()
returns
(bool)
queryExit
()
returns
(bool)
readGlobalProperties
(sessionConfig)
returns
nothing
Argument
Type
Default
sessionConfig
KConfig
readProperties
(a0)
returns
nothing
Argument
Type
Default
a0
KConfig
readPropertiesInternal
(a0, a1)
returns
(bool)
Argument
Type
Default
a0
KConfig
a1
int
resetAutoSaveSettings
()
returns
nothing
resizeEvent
(e)
returns
nothing
Argument
Type
Default
e
TQResizeEvent
restore
(number, show = 1)
returns
(bool)
Argument
Type
Default
number
int
show
bool
1
restoreWindowSize
(config)
returns
nothing
Argument
Type
Default
config
KConfig
saveAutoSaveSettings
()
returns
nothing
In versions KDE 3.2.0 and above only
saveGlobalProperties
(sessionConfig)
returns
nothing
Argument
Type
Default
sessionConfig
KConfig
saveMainWindowSettings
(config, groupName = TQString .null)
returns
nothing
Argument
Type
Default
config
KConfig
groupName
TQString
TQString .null
saveNewToolbarConfig
()
returns
nothing
In versions KDE 3.3.0 and above only
saveProperties
(a0)
returns
nothing
Argument
Type
Default
a0
KConfig
savePropertiesInternal
(a0, a1)
returns
nothing
Argument
Type
Default
a0
KConfig
a1
int
saveWindowSize
(config)
returns
nothing
Argument
Type
Default
config
KConfig
setAutoSaveSettings
(groupName = TQString .fromLatin1 ("MainWindow" ), saveWindowSize = 1)
returns
nothing
Argument
Type
Default
groupName
TQString
TQString .fromLatin1 ("MainWindow" )
saveWindowSize
bool
1
setCaption
(caption)
returns
nothing
Argument
Type
Default
caption
TQString
setCaption
(caption, modified)
returns
nothing
Argument
Type
Default
caption
TQString
modified
bool
setFrameBorderWidth
(a0)
returns
nothing
Argument
Type
Default
a0
int
setHelpMenuEnabled
(showHelpMenu = 1)
returns
nothing
Argument
Type
Default
showHelpMenu
bool
1
setIcon
(a0)
returns
nothing
In versions KDE 3.3.2 and above only
Argument
Type
Default
a0
TQPixmap
setPlainCaption
(caption)
returns
nothing
Argument
Type
Default
caption
TQString
setSettingsDirty
()
returns
nothing
setStandardToolBarMenuEnabled
(enable)
returns
nothing
In versions KDE 3.1.0 and above only
Argument
Type
Default
enable
bool
settingsDirty
()
returns
(bool)
settingsGroup
()
returns
(TQString)
setupGUI
(options = ToolBar | Keys | StatusBar | Save | Create, xmlfile = TQString .null)
returns
nothing
In versions KDE 3.3.0 and above only
Argument
Type
Default
options
int
ToolBar | Keys | StatusBar | Save | Create
xmlfile
TQString
TQString .null
setupGUI
(defaultSize, options = ToolBar | Keys | StatusBar | Save | Create, xmlfile = TQString .null)
returns
nothing
In versions KDE 3.5.0 and above only
Argument
Type
Default
defaultSize
TQSize
options
int
ToolBar | Keys | StatusBar | Save | Create
xmlfile
TQString
TQString .null
setupToolbarMenuActions
()
returns
nothing
In versions KDE 3.3.1 and above only
show
()
returns
nothing
In versions KDE 3.2.0 and above only
showAboutApplication
()
returns
nothing
sizeForCentralWidgetSize
(size)
returns
(TQSize)
Argument
Type
Default
size
TQSize
slotStateChanged
(newstate)
returns
nothing
Argument
Type
Default
newstate
TQString
slotStateChanged
(newstate, a0)
returns
nothing
In versions KDE 3.1.0 and above only
Argument
Type
Default
newstate
TQString
a0
KXMLGUIClient.ReverseStateChange
statusBar
()
returns
(KStatusBar)
toolBar
(name = 0)
returns
(KToolBar)
Argument
Type
Default
name
char
0
toolBarIterator
()
Not Implemented
toolBarMenuAction
()
returns
(KAction)
In versions KDE 3.1.0 and above only
variables
variables
Variable
Type
memberList
TQPtrList
*