脚本与 Python API

MQWidget.Tab · 选项卡

本页目录
  1. 属性
  2. 方法
  3. Tab([parent])
  4. getTabTitle(index)
  5. setTabTitle(index, title)

选项卡类。

父类: MQWidget.WidgetBase

属性#

读取(get) 写入(set) 类型 名称 说明
x x int currentPage 当前页
x x bool showTab 选项卡标题可见性
x x bool exclusive 子控件独占模式

方法#

成员 说明
Tab 构造函数。
getTabTitle 获取选项卡标题。
setTabTitle 设置选项卡标题。

Tab([parent])#

构造函数。

参数:
MQWidget.WidgetBase parent - 父控件

getTabTitle(index)#

获取选项卡标题。

参数:
int index - 选项卡索引
返回值:
string - title

setTabTitle(index, title)#

设置选项卡标题。

参数:
int index - 选项卡索引
string title - 标题
输入关键词,查找手册中的内容。