mirror of
https://github.com/pyapp-kit/superqt.git
synced 2025-07-21 12:11:07 +02:00
* remove qtcompat * change imports * change codecov * add dep * run tests against dalthviz branch * update * more replace * pin pyside6 for sake of test * add deprecation * drop qt 5.11 * unpin pyside6
22 lines
456 B
Python
22 lines
456 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 qtpy.QtWidgets import QApplication, QPushButton
|
|
|
|
from superqt.fonticon import setTextIcon
|
|
|
|
app = QApplication([])
|
|
|
|
|
|
btn4 = QPushButton()
|
|
btn4.resize(275, 275)
|
|
setTextIcon(btn4, FA5S.hamburger)
|
|
btn4.show()
|
|
|
|
app.exec()
|