Maya에서 PyQt 또는 PySide를 사용하여 사용자 인터페이스(UI)를 개발할 때, 다양한 유형의 창을 생성할 수 있습니다. 대표적으로 QDialog, QWidget, MainWindow를 사용할 수 있습니다.
이번 글에서는 이 세 가지 창 유형의 차이점과 각각의 특성에 대해 살펴보겠습니다. 1. QDialog: 모달 및 비모달 대화 상자 첫 번째 예제는 QDialog 클래스를 기반으로 한 창을 구현한 것입니다. class MainToolWindow(QtWidgets.QDialog): def __init__(self, parent=maya_main_window()): super().
__init__(parent) self.setWindowTitle("Layouts") self.setMinimumSize(200, 400) # On macOS make the window a Tool to keep it on top of Maya if sys.platform == "darwin": s...