#### PyKDE - Python Bindings for KDE

# class KMainWindow

Table of contents
Modules
kdeui Classes
All Classes

Module | kdeui
Class | KMainWindow
Inherits | QMainWindow, 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 | QWidget | 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 | QWidget | 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 | QString |
  force | bool |

- applyMainWindowSettings (config, groupName = QString .null)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  config | KConfig |
  groupName | QString | QString .null

- autoSaveGroup ()

  returns (QString)
  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 | QChildEvent |

- classNameOfToplevel (number)

  returns (QString)
  static

  Argument | Type | Default
  --- | --- | ---
  number | int |

- closeEvent (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QCloseEvent |

- configureToolbars ()

  returns (int)
  In versions KDE 3.3.0 and above only

- createGUI (xmlfile = QString .null, _conserveMemory = 1)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  xmlfile | QString | QString .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 (QPtrList<KMainWindow>)
  static

- getMemberList ()

  returns (MainWindowList)
  In versions KDE 3.4.0 and above, but less than KDE 3.5.2
  static

- guiFactory ()

  returns (KXMLGUIFactory)

- hasMenuBar ()

  returns (bool)
  In versions KDE 3.1.0 and above only

- helpMenu (aboutAppText = QString .null, showWhatsThis = 1)

  returns (KPopupMenu)

  Argument | Type | Default
  --- | --- | ---
  aboutAppText | QString | QString .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 | QPaintEvent |

- 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 | QResizeEvent |

- 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 = QString .null)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  config | KConfig |
  groupName | QString | QString .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 = QString .fromLatin1 ("MainWindow" ), saveWindowSize = 1)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  groupName | QString | QString .fromLatin1 ("MainWindow" )
  saveWindowSize | bool | 1

- setCaption (caption)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  caption | QString |

- setCaption (caption, modified)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  caption | QString |
  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 | QPixmap |

- setPlainCaption (caption)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  caption | QString |

- 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 (QString)

- setupGUI (options = ToolBar | Keys | StatusBar | Save | Create, xmlfile = QString .null)

  returns nothing
  In versions KDE 3.3.0 and above only

  Argument | Type | Default
  --- | --- | ---
  options | int | ToolBar | Keys | StatusBar | Save | Create
  xmlfile | QString | QString .null

- setupGUI (defaultSize, options = ToolBar | Keys | StatusBar | Save | Create, xmlfile = QString .null)

  returns nothing
  In versions KDE 3.5.0 and above only

  Argument | Type | Default
  --- | --- | ---
  defaultSize | QSize |
  options | int | ToolBar | Keys | StatusBar | Save | Create
  xmlfile | QString | QString .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 (QSize)

  Argument | Type | Default
  --- | --- | ---
  size | QSize |

- slotStateChanged (newstate)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  newstate | QString |

- slotStateChanged (newstate, a0)

  returns nothing
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  newstate | QString |
  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 | MainWindowList*