<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 17, 2013 at 6:35 AM, Vincent Vande Vyvre <span dir="ltr"><<a href="mailto:vincent.vandevyvre@swing.be" target="_blank">vincent.vandevyvre@swing.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le 17/02/13 10:08, Phil a écrit :<br>
<div><div class="h5">> Thank you for reading this.<br>
><br>
> I've been playing with Eric all day and I almost have a working GUI<br>
> application, but not quite. I have followed the two tutorials on the<br>
> Eric site and I'm sure that I haven't miss entered anything and so I<br>
> think the error is the result of something missing from my system or<br>
> perhaps a path error.<br>
><br>
> This is the error message:<br>
><br>
> The debugged program raised the exception unhandled ImportError<br>
> "No module named MainWindow"<br>
> File: /home/phil/main.py, Line: 4<br>
><br>
> And this is the code:<br>
><br>
> !/usr/bin/python<br>
><br>
> from PyQt4.QtGui import QApplication<br>
> from ui.MainWindow import MainWindow<br>
><br>
> def main():<br>
> import sys<br>
> app = QApplication(sys.argv)<br>
> wnd = MainWindow()<br>
> wnd.show()<br>
> sys.exit(app.exec_())<br>
><br>
> if __name__ == '__main__':<br>
> main()<br>
><br>
> I have tried mainWindow and mainwindow as well so it appears not to be<br>
> a case error.<br>
><br>
</div></div>Are you sure you have a class MainWindow in your <a href="http://ui.MainWindow.py" target="_blank">ui.MainWindow.py</a> ?<br></blockquote><div><br></div><div>I just looked at the tutorial that you might be experimenting with on this page: <a href="http://eric-ide.python-projects.org/tutorials/MiniBrowser/index.html">http://eric-ide.python-projects.org/tutorials/MiniBrowser/index.html</a><br>
<br></div><div>The class MainWindow is in mainwindow.py in the ui folder. I would try this:<br><br></div><div>from ui.mainwindow import MainWindow<br><br><br></div><div><br></div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class=""><font color="#888888"><br>
--<br>
Vincent V.V.<br>
Oqapy <<a href="https://launchpad.net/oqapy" target="_blank">https://launchpad.net/oqapy</a>> . Qarte<br>
<<a href="https://launchpad.net/qarte" target="_blank">https://launchpad.net/qarte</a>> . PaQager <<a href="https://launchpad.net/paqager" target="_blank">https://launchpad.net/paqager</a>><br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div>Joel Goldstick<br></div><a href="http://joelgoldstick.com" target="_blank">http://joelgoldstick.com</a><br></div>
</div></div>