1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| import sys
import os
from PyQt5.QtCore import QProcess
from PyQt5.QtWidgets import QWidget, QFrame, QVBoxLayout, QApplication, QPushButton
class embedBlender(QWidget):
def __init__(self):
QWidget.__init__(self)
self.setMinimumWidth(800)
self.setMinimumHeight(600)
self.frame = QFrame(self)
layout = QVBoxLayout(self)
layout.addWidget(self.frame)
os.system('blenderplayer -w c:\k.blend')
if __name__ == "__main__":
app = QApplication(sys.argv)
main = embedBlender()
main.show()
sys.exit(app.exec_()) |
Partager