def __init__(self, *args, **kwargs): super(Popup, self).__init__(*args, **kwargs) pm = QtGui.QPixmap(IDABUDDY_AVATAR_PATH) transform = QtGui.QTransform() transform.scale(0.5, 0.5) self.pm = pm.transformed(transform) self.slide = Slide(self) self.image_label = QtWidgets.QLabel(self.slide) self.image_label.setPixmap(self.pm) self.image_label.setFixedSize(self.pm.size()) self.image_label.setAlignment(QtCore.Qt.AlignTop) self.slide.initialize() self.talk_bubble = TalkBubble(self) self.talk_bubble.move(TALKBUBBLE_X_MOVE, TALKBUBBLE_Y_MOVE) self.talk_bubble.hide() self.slide.move(size_to_point(self.talk_bubble.size())) self.setFixedSize(self.talk_bubble.size() + self.slide.size() + get_extra_size()) connect_method_to_signal(self.talk_bubble, 'linkActivated(QString)', self.linkActivatedHandler) self._handlers = {} self._default_handler = None
def __init__(self, *args, **kwargs): super(AutoPopup, self).__init__(*args, **kwargs) self._auto_timer = QtCore.QTimer() connect_method_to_signal(self._auto_timer, 'timeout()', self._on_timer) self._callbacks = [] self._count = 0
def __init__(self): self._installed_views = set() if idaapi.IDA_SDK_VERSION >= 670: self._hooks = self._create_hooks(self._install_idabuddy) self._install_timer = None else: self._install_timer = QtCore.QTimer() connect_method_to_signal(self._install_timer, 'timeout()', self._on_install_timer) self._hooks = None
def set_on_animation_end(self, callback): connect_method_to_signal(self.animation_group, 'finished()', callback)