• PySide 模块
  • PySide.QtCore
  • 内容表

    上一话题

    ClassInfo

    下一话题

    Slot

    信号

    概要

    函数

    def connect (receiver)
    def disconnect (receiver)
    def emit (*args)

    详细描述

    信号 class provides a way to declare and connect Qt signals in a pythonic way.

    PySide adopt PyQt's new signal and slot syntax as-is. The PySide implementation is functionally compatible with the PyQt 4.5 one, with the exceptions listed bellow.

    Signal. connect ( receiver [ , type=Qt.AutoConnection ] )

    Create a connection between this signal and a receiver receiver can be a Python callable, a Slot 信号 .

    Signal. disconnect ( receiver )

    Disconnect this signal from a receiver receiver can be a Python callable, a Slot 信号 .

    Signal. emit ( *args )

    args is the arguments to pass to any connected slots, if any.