0

Is there a way to use Icons from qtawesome (https://github.com/spyder-ide/qtawesome/) within enaml?

tillsten
  • 14,491
  • 5
  • 32
  • 41

1 Answers1

1

At the moment there is no clean way to do this, however you can use the following workaround:

from  enaml.widgets.api import Window, PushButton, Container
from enaml.icon import Icon

from qtawesome import icon as qicon

enamldef Main(Window):

    Container:

        PushButton:
            text = "Open"
            icon = Icon(_tkdata=qicon('fa.folder-open'))