spyder-ide / qtawesome

Iconic fonts in PyQt and PySide applications
https://qtawesome.readthedocs.io/en/latest/index.html
MIT License
802 stars 106 forks source link

PR: Add IconWidget to display icon as widget #127

Closed doudz closed 4 years ago

doudz commented 4 years ago

Add IconWidget object to display any icon as a widget

# Spining icon as a widget
spin_widget = qta.IconWidget()
spin_icon = qta.icon('mdi.loading', color='red',
                     animation=qta.Spin(spin_widget))
spin_widget.setIcon(spin_icon)

# simple widget
simple_widget = qta.IconWidget('mdi.web', color='blue')

qtawesome-screenshot

ccordoba12 commented 4 years ago

@goanpeca, what do you think about this one?

doudz commented 4 years ago

I improved it a little

goanpeca commented 4 years ago

Sure, it can be useful on some cases.

Thanks for working on this 👍🏼

doudz commented 4 years ago

Sorry for delay I think it's ready now

ccordoba12 commented 4 years ago

@goanpeca, please give a new review to this one and approve if it's ready.

goanpeca commented 4 years ago

Please merge with master so new CI can run. Thanks! I will review after that :-)

goanpeca commented 4 years ago

@doudz could you merge with master and solve the conflicts?

ccordoba12 commented 4 years ago

@doudz, please merge with master to fix the new merge conflict.

ccordoba12 commented 4 years ago

@goanpeca, is this ready?