TypeError: unsupported operand type(s) for -: 'tuple' and 'tuple'

2006-03-16 Thread Peter Bismuti
pts/PyQt/rat.py", line 12, in planeClip     plane1[1] = origin[1]-width TypeError: unsupported operand type(s) for -: 'tuple' and 'tuple' -- Peter Bismuti # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Dialog.ui' # # Created: Thu Mar

TypeError: unsupported operand type(s) for -: 'tuple' and 'tuple'

2006-03-16 Thread Peter Bismuti
self.squareCounter),width,origin)   File "/acct/pjb9508/RAT/Scripts/PyQt/rat.py", line 12, in planeClip     plane1[1] = origin[1]-width TypeError: unsupported operand type(s) for -: 'tuple' and 'tuple' -- Peter Bismuti # -*- coding: utf-8 -*- # Form implementation generate

accessing attributes when inheriting?

2006-03-16 Thread Peter Bismuti
How do you access attributes of a class when inheriting from it? Can't you just say: self.attribute?  Help?! ... #!/usr/bin/python from Dialog import Dialog import enscmd class RatDialog(Dialog