I'm trying to show a graph x in a QMainWindow using pygal however the graph is not shown, this is the code I'm using
from PyQt5.QtWidgets import QMainWindow,QApplication
from PyQt5.QtCore import QDate
import pygal
class Principal(QMainWindow):
def __init__(self):
QMainWindow.__init__(self)
self.bar = pygal.Bar()
self.bar.add("Tabla", [1,2,3,4,5,6,7,8])
self.bar.render()
app = QApplication([])
p = Principal()
p.show()
p.resize(900,600)
app.exec_()
Try to also use a frame but it does not work