mirror of
https://github.com/pyapp-kit/superqt.git
synced 2025-07-21 12:11:07 +02:00
* working kinda well * rearrange * add back init * change entrypoints * add mi4 * example * more improvements * add animations * more changes * add feather, improve seticon * update example * refactor * broken wip * use iconfontmeta instead of enum * mostly working * misc * more tweaks * docs * adding tests * remove napari example * more docs * more docs * update examples * more docs * typing * working on icon options * updates * update * update example * update tests * add comment * docs * fix annotation * try set false first * fix py37 * more test fixes * fix qt6 test * ignore old deprecation warning * extend test
21 lines
467 B
Python
21 lines
467 B
Python
try:
|
|
from fonticon_fa5 import FA5S
|
|
except ImportError as e:
|
|
raise type(e)(
|
|
"This example requires the fontawesome fontpack:\n\n"
|
|
"pip install git+https://github.com/tlambert03/fonticon-fontawesome5.git"
|
|
)
|
|
|
|
from superqt.fonticon import setTextIcon
|
|
from superqt.qtcompat.QtWidgets import QApplication, QPushButton
|
|
|
|
app = QApplication([])
|
|
|
|
|
|
btn4 = QPushButton()
|
|
btn4.resize(275, 275)
|
|
setTextIcon(btn4, FA5S.hamburger)
|
|
btn4.show()
|
|
|
|
app.exec()
|