import sys from PySide6 import QtCore, QtGui from PySide6.QtWidgets import QApplication, QTreeView, QWidget, QHBoxLayout from PySide6.QtUiTools import loadUiType class Node(object): def __init__(self, name, parent = None): self._name = name self._children = [] self._parent = parent if parent is not None: parent.addChild(self) def typeInfo(self): return "NODE" def addChild(self, child): self._children.append(child) def name(self): return self._name def setName(self, name): self._name = name def child(self, row): return self._children[row] def childCount(self): return len(self._children) def parent(self): return self._parent def row(self): if self._parent is not None: return self._parent._children.index(self) def log(self, tableLevel = -1): output = "" t
pyside qt mvc program(...ing)
最新推荐文章于 2024-06-06 09:21:47 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)