Calculadora: criando um QLabel para mostrar informações

This commit is contained in:
Luiz Otávio
2023-02-28 08:03:36 -03:00
parent edc2cb9805
commit 1ef098a9f7
2 changed files with 18 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import sys
from display import Display
from info import Info
from main_window import MainWindow
from PySide6.QtGui import QIcon
from PySide6.QtWidgets import QApplication
@@ -16,6 +17,10 @@ if __name__ == '__main__':
window.setWindowIcon(icon)
app.setWindowIcon(icon)
# Info
info = Info('2.0 ^ 10.0 = 1024')
window.addToVLayout(info)
# Display
display = Display()
window.addToVLayout(display)