💻Quick Start
Installation
open the terminal and paste those commands, to install the Qtica library
pip install virtualenv
virtualenv -v .venv
source .venv/bin/activate
pip install qtica
Usage
To make your first app, create a new main.py
file, and paste this code into it.
#!/usr/bin/python3
from Qtica import BehaviorDec
from Qtica.widgets import Application, MainWindow, Label
from PySide6.QtCore import QSize, Qt
class Window(BehaviorDec):
def __init__(self):
return MainWindow(
uid="window",
home=Label(
text="Welcome to Qtica!",
setAlignment=Qt.Alignment.AlignCenter,
qss={
"color": "#7423FF",
"font-size": "24px"
}
),
qss={
"background-color": "#101117"
}
)
def main():
import sys
app = Application(sys.argv)
window = Window()
window.resize(QSize(500, 200))
window.show()
sys.exit(app.exec())
if __name__ == "__main__":
main()
Last updated
Was this helpful?