Python
PySide¶
基本構造¶
# -*- coding: utf-8 -*-
import os.path
import sys
from PySide2.QtWidgets import QApplication, QDialog, QTreeView, QVBoxLayout
class UISample(QDialog):
def __init__(self, parent=None):
super().__init__(parent)
layout = QVBoxLayout()
self.setLayout(layout)
if __name__ == '__main__':
app = QApplication(sys.argv)
a = UISample()
a.show()
sys.exit(app.exec_())
最終更新日: 2020-08-12 12:25:11