

def openTicketSelectionWindow(self, owner, target):
    sui = self.getKernel().serviceManager().suiService()
    equipment = self.getKernel().serviceManager().equipmentService()
    inventory = equipment.getEquippedObject(owner, 'inventory')
    travel = self.getKernel().serviceManager().travelService()
    opts = travel.getAvailableTickets(owner)
    options = EventResultList()
    for i in range(0, len(opts)):
        options.append(opts[i])
    window = sui.createListBox(ListBoxType.OK_CANCEL, 'Select Destination', 'Select Destination', useTicketCallback, owner)
    useTicketCallback = PythonCallback(self, 'useTicket')
    results = ResultList()
    results.extend(['List.lstList:SelectedRow'])
    window.subscribeToEventCallback(0, '', InputTrigger.OK, results, useTicketCallback)
    window.subscribeToEventCallback(1, '', InputTrigger.CANCEL, results, useTicketCallback)
    sui.openSUIWindow(window)

dataset/ETHPy150Open anhstudios/swganh/data/scripts/radials/ticket_collector.py PyRadialMenu.openTicketSelectionWindow/VarMisuse@128/174 `options`->`useTicketCallback`