本文整理汇总了Python中PySide.QtGui.QAction.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python QAction.__init__方法的具体用法?Python QAction.__init__怎么用?Python QAction.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PySide.QtGui.QAction
的用法示例。
在下文中一共展示了QAction.__init__方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from PySide.QtGui import QAction [as 别名]
# 或者: from PySide.QtGui.QAction import __init__ [as 别名]
def __init__(self):
QAction.__init__(self, "Set Poster Frame", None)
self.triggered.connect(self.setPosterFrameForActiveSequence)
hiero.core.events.registerInterest("kShowContextMenu/kViewer", self.eventHandler)
self.setObjectName("foundry.viewer.setPosterFrame")
self.setShortcut("Shift+P")
self.currentViewer = None
示例2: __init__
# 需要导入模块: from PySide.QtGui import QAction [as 别名]
# 或者: from PySide.QtGui.QAction import __init__ [as 别名]
def __init__(self):
QAction.__init__(self, "Copy Path(s) to Clipboard", None)
self.triggered.connect(self.getPythonSelection)
hiero.core.events.registerInterest("kShowContextMenu/kTimeline", self.eventHandler)
hiero.core.events.registerInterest("kShowContextMenu/kBin", self.eventHandler)
hiero.core.events.registerInterest("kShowContextMenu/kSpreadsheet", self.eventHandler)
self.setShortcut("Ctrl+Shift+Alt+C")
self.setObjectName("foundry.menu.copypathstoclipboard")
示例3: __init__
# 需要导入模块: from PySide.QtGui import QAction [as 别名]
# 或者: from PySide.QtGui.QAction import __init__ [as 别名]
def __init__(self):
QAction.__init__(self, "Create Longest Shot Sequence", None)
self.triggered.connect(self.doit)
hiero.core.events.registerInterest((hiero.core.events.EventType.kShowContextMenu, hiero.core.events.EventType.kBin), self.eventHandler)
示例4: __init__
# 需要导入模块: from PySide.QtGui import QAction [as 别名]
# 或者: from PySide.QtGui.QAction import __init__ [as 别名]
def __init__(self, file_name, open_file_slot, parent=None):
QAction.__init__(self, parent)
self.file_name = file_name
self.triggered.connect(self.on_triggered)
self.open_file_requested.connect(open_file_slot)
self.setText(file_name)
示例5: __init__
# 需要导入模块: from PySide.QtGui import QAction [as 别名]
# 或者: from PySide.QtGui.QAction import __init__ [as 别名]
def __init__(self, state, role):
QAction.__init__(self, '{0} {1}'.format(state.index, state.message), None)
self.state = state
self.role = role
self.triggered.connect(self.__onTrigger)
示例6: __init__
# 需要导入模块: from PySide.QtGui import QAction [as 别名]
# 或者: from PySide.QtGui.QAction import __init__ [as 别名]
def __init__(self, transaction, account, widget):
""" Initialize the New Transfer Action """
QAction.__init__("Transfer to {0}".format(account.name), widget)
self.account = account
self.transaction = transaction
示例7: __init__
# 需要导入模块: from PySide.QtGui import QAction [as 别名]
# 或者: from PySide.QtGui.QAction import __init__ [as 别名]
def __init__(self, *args):
QAction.__init__(self, *args)
self.triggered.connect(lambda: self.correct.emit(unicode(self
.text())))