mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Improve layout of intel window.
This commit is contained in:
parent
1d76ee4871
commit
1f4516b954
@ -62,6 +62,7 @@ class FinancesLayout(QGridLayout):
|
||||
budget = game.enemy_budget
|
||||
self.addWidget(QLabel(f"Balance"), row + 3, 1)
|
||||
self.addWidget(QLabel(f"<b>{budget}M</b>"), row + 3, 2)
|
||||
self.setRowStretch(row + 4, 1)
|
||||
|
||||
|
||||
class QFinancesMenu(QDialog):
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
from PySide2.QtWidgets import (
|
||||
QDialog,
|
||||
QGroupBox,
|
||||
QScrollArea, QVBoxLayout, QWidget,
|
||||
QScrollArea,
|
||||
QVBoxLayout,
|
||||
QWidget,
|
||||
)
|
||||
|
||||
from game.game import Game
|
||||
@ -36,9 +38,9 @@ class IntelWindow(QDialog):
|
||||
self.setModal(True)
|
||||
self.setWindowTitle("Intelligence")
|
||||
self.setWindowIcon(ICONS["Statistics"])
|
||||
self.setMinimumSize(600, 250)
|
||||
self.setMinimumSize(800, 600)
|
||||
|
||||
layout = QVBoxLayout()
|
||||
self.setLayout(layout)
|
||||
|
||||
layout.addWidget(EconomyIntelBox(game))
|
||||
layout.addWidget(EconomyIntelBox(game), stretch=1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user