class KDialogBase

#### PyKDE - Python Bindings for KDE

# class KDialogBase |
Table of contents
Modules
tdeui Classes
All Classes

Module | tdeui
Class | KDialogBase
Inherits | KDialog

### enums

- ActionButtonStyle = {ActionStyle0, ActionStyle1, ActionStyle2, ActionStyle3, ActionStyle4, ActionStyleMAX }
- ButtonCode = {Help, Default, Ok, Apply, Try, Cancel, Close, User1, User2, User3, No, Yes, Details, Filler, Stretch, NoDefault }
- ButtonCode = {Help, Default, Ok, Apply, Try, Cancel, Close, User1, User2, User3, No, Yes, Details, Filler, Stretch }
- DialogType = {TreeList, Tabbed, Plain, Swallow, IconList }

### methods

- KDialogBase (parent = 0, name = 0, modal = 1, caption = TQString .null, buttonMask = Ok | Apply | Cancel, defaultButton = Ok, separator = 0, user1 = KGuiItem (), user2 = KGuiItem (), user3 = KGuiItem ())

  returns a KDialogBase instance
  Argument | Type | Default
  --- | --- | ---
  parent | TQWidget | 0
  name | char | 0
  modal | bool | 1
  caption | TQString | TQString .null
  buttonMask | int | Ok | Apply | Cancel
  defaultButton | KDialogBase.ButtonCode | Ok
  separator | bool | 0
  user1 | KGuiItem | KGuiItem ()
  user2 | KGuiItem | KGuiItem ()
  user3 | KGuiItem | KGuiItem ()

- KDialogBase (dialogFace, caption, buttonMask, defaultButton, parent = 0, name = 0, modal = 1, separator = 0, user1 = KGuiItem (), user2 = KGuiItem (), user3 = KGuiItem ())

  returns a KDialogBase instance
  Argument | Type | Default
  --- | --- | ---
  dialogFace | int |
  caption | TQString |
  buttonMask | int |
  defaultButton | KDialogBase.ButtonCode |
  parent | TQWidget | 0
  name | char | 0
  modal | bool | 1
  separator | bool | 0
  user1 | KGuiItem | KGuiItem ()
  user2 | KGuiItem | KGuiItem ()
  user3 | KGuiItem | KGuiItem ()

- KDialogBase (dialogFace, f, parent = 0, name = 0, modal = 1, caption = TQString .null, buttonMask = Ok | Apply | Cancel, defaultButton = Ok, separator = 0, user1 = KGuiItem (), user2 = KGuiItem (), user3 = KGuiItem ())

  returns a KDialogBase instance
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  dialogFace | KDialogBase.DialogType |
  f | WFlags |
  parent | TQWidget | 0
  name | char | 0
  modal | bool | 1
  caption | TQString | TQString .null
  buttonMask | int | Ok | Apply | Cancel
  defaultButton | KDialogBase.ButtonCode | Ok
  separator | bool | 0
  user1 | KGuiItem | KGuiItem ()
  user2 | KGuiItem | KGuiItem ()
  user3 | KGuiItem | KGuiItem ()

- KDialogBase (caption, buttonMask = Yes | No | Cancel, defaultButton = Yes, escapeButton = Cancel, parent = 0, name = 0, modal = 1, separator = 0, yes = KStdGuiItem .yes (), no = KStdGuiItem .no (), cancel = KStdGuiItem .cancel ())

  returns a KDialogBase instance
  Argument | Type | Default
  --- | --- | ---
  caption | TQString |
  buttonMask | int | Yes | No | Cancel
  defaultButton | KDialogBase.ButtonCode | Yes
  escapeButton | KDialogBase.ButtonCode | Cancel
  parent | TQWidget | 0
  name | char | 0
  modal | bool | 1
  separator | bool | 0
  yes | KGuiItem | KStdGuiItem .yes ()
  no | KGuiItem | KStdGuiItem .no ()
  cancel | KGuiItem | KStdGuiItem .cancel ()

- aboutToShowDetails ()

  returns nothing

- aboutToShowPage (page)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  page | TQWidget |

- actionButton (id)

  returns (TQPushButton)
  Argument | Type | Default
  --- | --- | ---
  id | KDialogBase.ButtonCode |

- activePageIndex ()

  returns (int)

- addButtonBelowList (text, recv, slot)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  recv | TQObject |
  slot | char |

- addButtonBelowList (guiitem, recv, slot)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  guiitem | KGuiItem |
  recv | TQObject |
  slot | char |

- addGridPage (n, dir, itemName, header = TQString .null, pixmap = TQPixmap ())

  returns (TQGrid)
  Argument | Type | Default
  --- | --- | ---
  n | int |
  dir | TQt.Orientation |
  itemName | TQString |
  header | TQString | TQString .null
  pixmap | TQPixmap | TQPixmap ()

- addGridPage (n, dir, items, header = TQString .null, pixmap = TQPixmap ())

  returns (TQGrid)
  Argument | Type | Default
  --- | --- | ---
  n | int |
  dir | TQt.Orientation |
  items | TQStringList |
  header | TQString | TQString .null
  pixmap | TQPixmap | TQPixmap ()

- addHBoxPage (itemName, header = TQString .null, pixmap = TQPixmap ())

  returns (TQHBox)
  Argument | Type | Default
  --- | --- | ---
  itemName | TQString |
  header | TQString | TQString .null
  pixmap | TQPixmap | TQPixmap ()

- addHBoxPage (items, header = TQString .null, pixmap = TQPixmap ())

  returns (TQHBox)
  Argument | Type | Default
  --- | --- | ---
  items | TQStringList |
  header | TQString | TQString .null
  pixmap | TQPixmap | TQPixmap ()

- addPage (itemName, header = TQString .null, pixmap = TQPixmap ())

  returns (TQFrame)
  Argument | Type | Default
  --- | --- | ---
  itemName | TQString |
  header | TQString | TQString .null
  pixmap | TQPixmap | TQPixmap ()

- addPage (items, header = TQString .null, pixmap = TQPixmap ())

  returns (TQFrame)
  Argument | Type | Default
  --- | --- | ---
  items | TQStringList |
  header | TQString | TQString .null
  pixmap | TQPixmap | TQPixmap ()

- addVBoxPage (itemName, header = TQString .null, pixmap = TQPixmap ())

  returns (TQVBox)
  Argument | Type | Default
  --- | --- | ---
  itemName | TQString |
  header | TQString | TQString .null
  pixmap | TQPixmap | TQPixmap ()

- addVBoxPage (items, header = TQString .null, pixmap = TQPixmap ())

  returns (TQVBox)
  Argument | Type | Default
  --- | --- | ---
  items | TQStringList |
  header | TQString | TQString .null
  pixmap | TQPixmap | TQPixmap ()

- addWidgetBelowList (widget)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  widget | TQWidget |

- adjustSize ()

  returns nothing

- apply ()

  returns nothing

- applyClicked ()

  returns nothing

- applyPressed ()

  returns nothing

- backgroundChanged ()

  returns nothing

- backgroundTile ()

  returns (TQPixmap)
  static

- calculateSize (w, h)

  returns (TQSize)
  Argument | Type | Default
  --- | --- | ---
  w | int |
  h | int |

- cancel ()

  returns nothing
  In versions KDE 3.1.0 and above only

- cancelClicked ()

  returns nothing

- closeClicked ()

  returns nothing

- closeEvent (e)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  e | TQCloseEvent |

- configDialogSize (groupName)

  returns (TQSize)
  Argument | Type | Default
  --- | --- | ---
  groupName | TQString |

- configDialogSize (config, groupName)

  returns (TQSize)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  config | TDEConfig |
  groupName | TQString |

- defaultClicked ()

  returns nothing

- delayedDestruct ()

  returns nothing
  In versions KDE 3.1.0 and above only

- delayedDestruct ()

  returns nothing
  In versions less than KDE 3.1.0 only

- disableResize ()

  returns nothing

- enableButton (id, state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | KDialogBase.ButtonCode |
  state | bool |

- enableButtonApply (state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  state | bool |

- enableButtonCancel (state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  state | bool |

- enableButtonOK (state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  state | bool |

- enableButtonSeparator (state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  state | bool |

- enableLinkedHelp (state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  state | bool |

- finished ()

  returns nothing

- getBackgroundTile ()

  returns (TQPixmap)
  static

- getBorderWidths ()

  returns ulx (int) uly (int) lrx (int) lry (int)

- getContentsRect ()

  returns (TQRect)

- haveBackgroundTile ()

  returns (bool)
  static

- helpClicked ()

  returns nothing

- helpClickedSlot (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | TQString |

- helpLinkText ()

  returns (TQString)

- hidden ()

  returns nothing

- hideEvent (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | TQHideEvent |

- incInitialSize (s, noResize = 0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  s | TQSize |
  noResize | bool | 0

- keyPressEvent (e)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  e | TQKeyEvent |

- mainWidget ()

  returns (TQWidget)

- makeGridMainWidget (n, dir)

  returns (TQGrid)
  Argument | Type | Default
  --- | --- | ---
  n | int |
  dir | TQt.Orientation |

- makeHBoxMainWidget ()

  returns (TQHBox)

- makeMainWidget ()

  returns (TQFrame)

- makeVBoxMainWidget ()

  returns (TQVBox)

- minimumSizeHint ()

  returns (TQSize)

- noClicked ()

  returns nothing

- okClicked ()

  returns nothing

- pageIndex (widget)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  widget | TQWidget |

- plainPage ()

  returns (TQFrame)

- saveDialogSize (groupName, global = 0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  groupName | TQString |
  global | bool | 0

- saveDialogSize (config, groupName, global = 0)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  config | TDEConfig |
  groupName | TQString |
  global | bool | 0

- setBackgroundTile (pix)

  returns nothing
  static
  Argument | Type | Default
  --- | --- | ---
  pix | TQPixmap |

- setButtonApply (item = KStdGuiItem .apply ())

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  item | KGuiItem | KStdGuiItem .apply ()

- setButtonApplyText (text = TQString .null, tooltip = TQString .null, quickhelp = TQString .null)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  text | TQString | TQString .null
  tooltip | TQString | TQString .null
  quickhelp | TQString | TQString .null

- setButtonBoxOrientation (orientation)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  orientation | int |

- setButtonCancel (item = KStdGuiItem .cancel ())

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  item | KGuiItem | KStdGuiItem .cancel ()

- setButtonCancelText (text = TQString .null, tooltip = TQString .null, quickhelp = TQString .null)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  text | TQString | TQString .null
  tooltip | TQString | TQString .null
  quickhelp | TQString | TQString .null

- setButtonGuiItem (id, item)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  id | KDialogBase.ButtonCode |
  item | KGuiItem |

- setButtonOK (item = KStdGuiItem .ok ())

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  item | KGuiItem | KStdGuiItem .ok ()

- setButtonOKText (text = TQString .null, tooltip = TQString .null, quickhelp = TQString .null)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  text | TQString | TQString .null
  tooltip | TQString | TQString .null
  quickhelp | TQString | TQString .null

- setButtonText (id, text)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | KDialogBase.ButtonCode |
  text | TQString |

- setButtonTip (id, text)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | KDialogBase.ButtonCode |
  text | TQString |

- setButtonWhatsThis (id, text)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | KDialogBase.ButtonCode |
  text | TQString |

- setDetails (showDetails)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  showDetails | bool |

- setDetailsWidget (detailsWidget)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  detailsWidget | TQWidget |

- setEscapeButton (id)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | KDialogBase.ButtonCode |

- setFolderIcon (path, pixmap)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  path | TQStringList |
  pixmap | TQPixmap |

- setHelp (anchor, appname = TQString .null)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  anchor | TQString |
  appname | TQString | TQString .null

- setHelpLinkText (text)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  text | TQString |

- setIconListAllVisible (state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  state | bool |

- setInitialSize (s, noResize = 0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  s | TQSize |
  noResize | bool | 0

- setMainWidget (widget)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  widget | TQWidget |

- setRootIsDecorated (state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  state | bool |

- setShowIconsInTreeList (state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  state | bool |

- setTreeListAutoResize (state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  state | bool |

- showButton (id, state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | KDialogBase.ButtonCode |
  state | bool |

- showButtonApply (state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  state | bool |

- showButtonCancel (state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  state | bool |

- showButtonOK (state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  state | bool |

- showPage (index)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  index | int |

- showTile (state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  state | bool |

- sizeHint ()

  returns (TQSize)

- slotApply ()

  returns nothing

- slotCancel ()

  returns nothing

- slotClose ()

  returns nothing

- slotDefault ()

  returns nothing

- slotDelayedDestruct ()

  returns nothing

- slotDetails ()

  returns nothing

- slotHelp ()

  returns nothing

- slotNo ()

  returns nothing

- slotOk ()

  returns nothing

- slotTry ()

  returns nothing

- slotUser1 ()

  returns nothing

- slotUser2 ()

  returns nothing

- slotUser3 ()

  returns nothing

- slotYes ()

  returns nothing

- tryClicked ()

  returns nothing

- unfoldTreeList (persist = 0)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  persist | bool | 0

- updateBackground ()

  returns nothing

- updateGeometry ()

  returns nothing

- user1Clicked ()

  returns nothing

- user2Clicked ()

  returns nothing

- user3Clicked ()

  returns nothing

- yesClicked ()

  returns nothing