Add PyQt functions