[PyKDE] PyQwt example issues

Hans-Peter Jansen hpj at urpla.net
Sun Feb 20 23:30:11 GMT 2005


Hi Gerard,

I found these issues with the examples of PyQwt 4.1a and
Python version: 2.3
sip version: 4.2
Qt version: 3.2.1
PyQt version: 3.14

python DialDemo.py 
Traceback (most recent call last):
  File "DialDemo.py", line 436, in ?
    main(sys.argv)
  File "DialDemo.py", line 419, in main
    demo = make()
  File "DialDemo.py", line 427, in make
    demo.addTab(CompassGrid(demo), "Compass")
  File "DialDemo.py", line 18, in __init__
    self.__createCompass(pos)
  File "DialDemo.py", line 28, in __createCompass
    colorGroup.setColor(c, QColor())
TypeError: argument 1 of QColorGroup.setColor() has an invalid type

Uncommenting the offending lines (27+28) results in:

Traceback (most recent call last):
  File "DialDemo.py", line 436, in ?
    main(sys.argv)
  File "DialDemo.py", line 419, in main
    demo = make()
  File "DialDemo.py", line 427, in make
    demo.addTab(CompassGrid(demo), "Compass")
  File "DialDemo.py", line 18, in __init__
    self.__createCompass(pos)
  File "DialDemo.py", line 101, in __createCompass
    if colorGroup.color(c).isValid():
TypeError: argument 1 of QColorGroup.color() has an invalid type

and:

python ICompass.py
Traceback (most recent call last):
  File "ICompass.py", line 73, in ?
    references = test_python()
  File "ICompass.py", line 32, in test_python
    result = compass()
  File "ICompass.py", line 24, in compass
    c = Compass()
  File "ICompass.py", line 11, in __init__
    self.setFrameShadow(QFrame.Raised)
TypeError: argument 1 of QwtDial.setFrameShadow() has an invalid type

Both smell suspiciously like sips new enum handling is biting here..

Pete




More information about the PyQt mailing list