python/qt

LeoDeBeo leodebeo at hotmail.com
Thu Aug 30 09:22:29 EDT 2001


using qt with python, i have following problem

i imported qt  'from qt import *'   (every qt-class i use works)
but when i want to set the alignment of a label, the constants aren't 
recognized.
label= QLabel(parent)
label.setText(string)
label.setAlignment (AlignCenter)

complaint: NameError: global name 'AlignCenter' is not defined

tx



More information about the Python-list mailing list