Investors & landlords

I had capital gains from selling stock as a resident of Texas. Pennsylvania (non-resident state) is charging me income tax for those capital gains on stocks unrelated to my business in PA. How can I allocate my gains to just Texas. PA is entered as a non-resident state. 

 

I just need help finding the option on turbo tax to not be taxed for my capital gains from stock for PA state income tax when I live in Texas. Thanks