23 lines
692 B
Python
23 lines
692 B
Python
from PyQt5.QtWidgets import QDialog, QVBoxLayout, QTextBrowser, QPushButton, QHBoxLayout
|
|
|
|
class HelpDialog(QDialog):
|
|
def __init__(self):
|
|
super().__init__()
|
|
self.setWindowTitle('도움말')
|
|
self.init_ui()
|
|
|
|
def init_ui(self):
|
|
layout = QVBoxLayout()
|
|
|
|
help_text = QTextBrowser()
|
|
help_text.setPlainText('도움말 내용을 여기에 작성합니다.')
|
|
layout.addWidget(help_text)
|
|
|
|
button_layout = QHBoxLayout()
|
|
close_button = QPushButton('닫기')
|
|
close_button.clicked.connect(self.accept)
|
|
button_layout.addWidget(close_button)
|
|
|
|
layout.addLayout(button_layout)
|
|
self.setLayout(layout)
|