PyQt5最全54 树控件之为树节点添加响应事件
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import Qt
import sys
class TreeEvent(QMainWindow):
"""
为树节点添加响应事件
"""
def __init__(self):
super(TreeEvent, self).__init__()
self.initUI()
def initUI(self):
self.setWindowTitle('为树节点添加响应事件')
self