如何在 PyQT 中的字符串中插入符号“&”
How can insert a symbol "&" in a string in PyQT
如何在 python Qt QPushbutton
中的字符串之间插入 symbol\operator “&”
Apply_button = QtGui.QPushButton("Apply & Change")
我得到的按钮文本为
Apply Change
但是缺少 'and &' 符号
& 就像 Qt 上的快捷方式一样,尝试使用 &&
如果文本包含符号 (&
),将使用下一个字符创建快捷方式。要插入实际的符号,请使用 &&
.
如何在 python Qt QPushbutton
中的字符串之间插入 symbol\operator “&”Apply_button = QtGui.QPushButton("Apply & Change")
我得到的按钮文本为
Apply Change
但是缺少 'and &' 符号
& 就像 Qt 上的快捷方式一样,尝试使用 &&
如果文本包含符号 (&
),将使用下一个字符创建快捷方式。要插入实际的符号,请使用 &&
.