Ah HA! Thanks Tony. Simple type cast.

I think I didn't catch it because of the text() method. I guess I figured
it was already returning a string.

Thanks again.


On Mon, Jul 8, 2013 at 3:10 PM, Tony Barbieri <[email protected]> wrote:

> Try wrapping sel.text() in str first?
>
> myCam = si.ActiveSceneRoot.FindChild(str(sel.text())).  Might be
> returning unicode?
>
> -tony
>
>
> On Mon, Jul 8, 2013 at 6:04 PM, Gene Crucean <[email protected]
> > wrote:
>
>> Hey guys,
>>
>> I'm kinda sorta new to PyQt and an trying to figure out why this is
>> crashing Soft. I'm sure it's something really simple I'm doing wrong but
>> could use a little guidance.
>>
>>
>> si = Application
>> log = si.LogMessage
>>
>> camList = self.ui.cameraList.selectedItems() *# QLineEdit*
>> for sel in camList:
>>      log(sel.text()) *# If all I do is log it's fine.*
>>  myCam = si.ActiveSceneRoot.FindChild(sel.text()) *# Pretty sure this is
>> the line that's crashing even though Soft is crashing before any output
>> happens.*
>>  log("myCam: " + myCam.FullName)
>>
>>
>> Thoughts, tips, opinions?
>>
>> Cheers
>>
>>
>> --
>> -Gene
>> www.genecrucean.com
>>
>
>
>
> --
> -tony
>



-- 
-Gene
www.genecrucean.com

Reply via email to