Dan Albert 4a7dae9cc2 Upgrade to PySide6.
PySide2 renamed to PySide6 for Qt 6 support. It doesn't seem like
PySide2 is getting a 3.10 wheel, so upgrade to Qt 6 to prep for that.
2021-11-20 19:26:18 -08:00

26 lines
717 B
Python

from PySide6.QtWidgets import QFrame, QVBoxLayout, QLabel, QGroupBox
from game import Game
from qt_ui.windows.infos.QInfoList import QInfoList
class QInfoPanel(QGroupBox):
def __init__(self, game: Game):
super(QInfoPanel, self).__init__("Info Panel")
self.informations_list = QInfoList(game)
self.init_ui()
def setGame(self, game):
self.game = game
self.informations_list.setGame(game)
def update(self):
self.informations_list.update_list()
def init_ui(self):
layout = QVBoxLayout()
layout.addWidget(self.informations_list)
layout.setSpacing(0)
layout.setContentsMargins(0, 20, 0, 0)
self.setLayout(layout)