On 2008-10-23, Nahuel Defossé wrote: > Hi > I'd be glad to receive any hint about how to subclass QSpinBox in order to > use hex format. > Thanks > Nahuel
There's an example of subclassing a QSpinBox for roman numerals in my PyQt book: http://www.qtrac.eu/pyqtbook.html You can download the examples, it is chap11/romanspinbox.py There's an example of subclassing a QSpinBox for hex numbers in my C++/Qt book (so it is in C++ but easy to translate to PyQt): http://www.informit.com/store/product.aspx?isbn=0132354160 Again, you can download the examples, it is in chap05/hexspinbox -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy "Programming in Python 3" - ISBN 0137129297 _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt