On Mon, 7 Dec 2009 13:38:26 -0800 (PST), rich1939 <r.richardpar...@comcast.net> wrote: > I'm getting text from a QLineEdit control and trying to right-justify it > with > zero (0) fill. When I try to say the following: > > text = self.ui.txtNumber.text().rightJustify(6, '0') > > I get an error message saying the argument 2 of the rightJustify call is an > invalid type. I have looked at the examples in Riverbank's PyQt Classes > writeup for that call and it appears that I should be able to call the > method in the way I am doing. > > Apparently the rightJustify() method needs some other type of fill > character > than what I'm trying to provide. > > Please help with this (very small) problem.
As the documentation says, it is expecting a QChar. Phil _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt