Anyway to use an interface inside a widget?

Thanks!