TTkMenuBarLayout🌶️

class TTkMenuBarLayout(**kwargs)[source]🌶️

Bases: TTkHBoxLayout

Slots🌶️

Methods🌶️

addMenu(text: TTkString, data: object = None, checkable: bool = False, checked: bool = False, alignment=1)[source]🌶️
clear()[source]🌶️

Methods Inherited from: TTkGridLayout

addItem(item[, row, col, rowspan, colspan, ...])

Add the item to this TTkGridLayout

addItems(items[, row, col, rowspan, ...])

Add the items to this TTkGridLayout

addWidget(widget[, row, col, rowspan, ...])

Add the widget to this TTkGridLayout, this function uses addItem()

addWidgets(widgets[, row, col, rowspan, ...])

Add the widgets to this TTkGridLayout, this function uses addItem()

columnMinWidth()

getSizes()

gridItems()

gridSize()

insertColumn(col)

insertRow(row)

itemAtPosition(row, col)

maximumColWidth(gridCol)

maximumHeight()

process the widgets and get the min size

maximumRowHeight(gridRow)

maximumWidth()

process the widgets and get the min size

minimumColWidth(gridCol)

minimumHeight()

process the widgets and get the min size

minimumRowHeight(gridRow)

minimumWidth()

process the widgets and get the min size

removeItem(item)

removeItems(items)

removeWidget(widget)

Remove a widget from this Layout

removeWidgets(widgets)

Remove a list of widget from this Layout

repack()

replaceItem(item, index)

rowMinHeight()

setColumnMinWidth(cmw)

setRowMinHeight(rmh)

update(*args, **kwargs)

Methods Inherited from: TTkLayout

addItem(item[, row, col, rowspan, colspan, ...])

Add the item to this TTkGridLayout

addItems(items[, row, col, rowspan, ...])

Add the items to this TTkGridLayout

addWidget(widget[, row, col, rowspan, ...])

Add the widget to this TTkGridLayout, this function uses addItem()

addWidgets(widgets[, row, col, rowspan, ...])

Add the widgets to this TTkGridLayout, this function uses addItem()

children()

count()

fullWidgetAreaGeometry()

insertItem(index, item)

insertItems(index, items)

insertWidget(index, widget)

insertWidgets(index, widgets)

itemAt(index)

iterWidgets([onlyVisible, recurse])

lowerWidget(widget)

parentWidget()

raiseWidget(widget)

removeItem(item)

removeItems(items)

removeWidget(widget)

Remove a widget from this Layout

removeWidgets(widgets)

Remove a list of widget from this Layout

replaceItem(item, index)

setGeometry(x, y, w, h)

setParent(parent)

update(*args, **kwargs)

TTkMenuBarLayout Attributes🌶️

LAYER0

LAYER1

LAYER2

LAYER3

LAYERMASK

zSortedItems