Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #39027 > unrolled thread

Eric - "No module named MainWindow"

Started byPhil <phil_lor@bigpond.com>
First post2013-02-17 19:08 +1000
Last post2013-02-17 19:08 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Eric - "No module named MainWindow" Phil <phil_lor@bigpond.com> - 2013-02-17 19:08 +1000

#39027 — Eric - "No module named MainWindow"

FromPhil <phil_lor@bigpond.com>
Date2013-02-17 19:08 +1000
SubjectEric - "No module named MainWindow"
Message-ID<mailman.1893.1361097268.2939.python-list@python.org>
Thank you for reading this.

I've been playing with Eric all day and I almost have a working GUI 
application, but not quite. I have followed the two tutorials on the 
Eric site and I'm sure that I haven't miss entered anything and so I 
think the error is the result of something missing from my system or 
perhaps a path error.

This is the error message:

The debugged program raised the exception unhandled ImportError
"No module named MainWindow"
File: /home/phil/main.py, Line: 4

And this is the code:

!/usr/bin/python
		
from PyQt4.QtGui import QApplication
from ui.MainWindow import MainWindow

def main():
     import sys
     app = QApplication(sys.argv)
     wnd = MainWindow()
     wnd.show()
     sys.exit(app.exec_())

if __name__ == '__main__':
     main()

I have tried mainWindow and mainwindow as well so it appears not to be a 
case error.

-- 
Regards,
Phil

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web