Accessing signals and slots in scripts