Hi all.

I am using python and pyqt4 to make a simple application. In the history table I want to be able to double click a cell and launch a new dialog.

How ever for some reason when ever I try to do this it gives me the error: "AttributeError: 'HistoryInformation' object has no attribute 'exec_'"

I am trying to run the dialog via:
Qt Code:
  1. histinfodlg = histInfo.HistoryInformation(nzb, form)
  2. histinfodlg.exec_()
To copy to clipboard, switch view to plain text mode 

Here is the code for the histInfo:
Qt Code:
  1. from PyQt4.QtCore import *
  2. from PyQt4.QtGui import *
  3. import PyQt4.uic as uic
  4. import sys
  5.  
  6. form_class, base_class = uic.loadUiType("Ui/histInfoDLG.ui")
  7.  
  8. class HistoryInformation(base_class, form_class):
  9. def __init__(self, info, parent = None):
  10. super(base_class, self).__init__(parent)
  11. self.setupUi(self)
  12.  
  13. self.nameLabel.setText(info["name"])
  14. self.pathLabel.setText(info["storage"])
  15. self.urlLabel.setText(info["url"])
  16.  
  17. if __name__ == "__main__":
  18. import sys
  19.  
  20. app = QApplication(sys.argv)
  21. form = HistoryInformation({"name":"test", "storage":"test2", "url":"www.google.com"})
  22. form.show()
  23. app.exec_()
To copy to clipboard, switch view to plain text mode 

I have tested this with a different dialog and it worked fine, so the issue is with this dialog but I just cant see where it is, as if I run it on its own it works fine.

Any ideas?

Cheers.