질문 내용 그대로에요...
4:15에 창이 하나뜬다고 하셨는데 계속 두 개가 뜹니다....
import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
import pyqtgraph as pg
from PyQt5.QtCore import *
import numpy as np
class graph(QMainWindow):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
x = np.random.normal(size=1000)
y = np.random.normal(size=1000)
temp = pg.plot(x, y, pen=None, symbol='o')
self.setCentralWidget(temp)
self.setGeometry(300, 300, 400, 300)
self.setWindowTitle('woody')
self.setWindowIcon(QIcon('C:/Users/woody/OneDrive/바탕 화면/Python Workspace/KCG.png'))
self.show()
app = QApplication(sys.argv)
exc = graph()
app.exec_()