Re: Problem with string -> int conversion ?
- From: "Fredrik Lundh" <fredrik@xxxxxxxxxxxxxx>
- Date: Wed, 31 Aug 2005 16:16:45 +0200
Madhusudan Singh wrote:
>> if the callback code is Python, you should be able to add a print
>> statement to the line just before the failing "int" call:
>>
>> print repr(signalrangestr), type(signalrangestr)
>> signalrange = int(signalrangestr)
>>
>> that print statement should be all you need to figure out what
>> signalrangestr really is.
>
> Thanks for the hint.
>
> I get :
>
> <__main__.qt.QString object at 0xb7c1a3ec> <class '__main__.qt.QString'>
>
> The question is :
>
> How do I convert a QString to a plain string ?
googling for "pyqt qstring" brought up this page:
http://www.opendocspublishing.com/pyqt/x2068.htm
</F>
.
- References:
- Problem with string -> int conversion ?
- From: Madhusudan Singh
- Re: Problem with string -> int conversion ?
- From: Fredrik Lundh
- Re: Problem with string -> int conversion ?
- From: Madhusudan Singh
- Problem with string -> int conversion ?
- Prev by Date: Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type
- Next by Date: plone site in separate database - MountFolder
- Previous by thread: Re: Problem with string -> int conversion ?
- Next by thread: py2app and Bittornado
- Index(es):
Relevant Pages
|