You can get the target and selector for a particular function by using the main window's getTargetFromFunction and getSelectorFromFunction methods. For example: mainWindow = getAFXApp().getAFXMainWindow() target = mainWindow.getTargetFromFunction('Part->Create') selector = mainWindow.getSelectorFromFunction('Part->Create') FXButton(self, 'Create Part...', tgt=target, sel=selector )The list of valid function names can be found in the Functions tab page in the dialog box. |