[PyQt] Problem on connecting signals

Luca Bedogni me at lucabedogni.it
Mon Nov 26 14:48:49 GMT 2007

	I made a qt4 app with designer-qt, then converted with 
     pyuic4 interface.ui -o interface.py
Then, from my app, I do:
#!/usr/bin/env python

import sys
import os
from interface import Ui_Dialog
from PyQt4 import QtGui,QtCore

if __name__ == "__main__":

  app = QtGui.QApplication(sys.argv)

  MainForm = QtGui.QWidget()
  form = Ui_Dialog()


but when i ran it I got:
bedo at blackmamba:~/pyqt$ ./prova.py 
Traceback (most recent call last):
  File "./prova.py", line 15, in ?
  File "/home/bedo/pyqt/interface.py", line 36, in setupUi
AttributeError: accept
bedo at blackmamba:~/pyqt$ 

Where am I wrong?

Debian Powered GNU/Linux User #373118
Bedogni Luca - 	Blog | http://blog.lucabedogni.it
		        Site | http://www.lucabedogni.it
Debianizzati - www.debianizzati.org | Founder Member
A user needs the root password like nitroglycerine needs a good shake.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20071126/3a5234a1/attachment-0001.bin

More information about the PyQt mailing list