On Sun, Aug 24, 2008 at 12:03 PM, himork <[EMAIL PROTECTED]> wrote:
>
> Hi, I am newbie in Python and pyQt, I hope this question is not too silly.
>
> I am trying to write a custom widget in python/pyqt to be used inside
> QtDesigner. Everything seems to work fine (i followed the tutorials and
> examples available), except for the signals: when I use __pyqtSignals__ =
> ("mysignal(double)"), the widget ends up having one signal for each letter
> of "mysignal(double)", parenthesis included, like it cannot understand that
> this is a string. And if I had 2 signals, designer crashes when I try to add
> my custom widget.
I think you may want a comma to turn that string into a tuple, e.g
__pyqtSignals__ = ("mysignal(double)",)
Python will just think that your brackets are there for the sake of
precedence modification otherwise.
>
> This is probably just a stupid problem, but is driving me crazy...any
> suggestion?
> Thank you!
> --
> View this message in context:
> http://www.nabble.com/Custom-Widgets-and-__pyqtSignals__-tp19112647p19112647.html
> Sent from the PyQt mailing list archive at Nabble.com.
>
> _______________________________________________
> PyQt mailing list [email protected]
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt