<div class="gmail_quote">On Thu, Jan 6, 2011 at 9:32 AM, Rohit Coder <span dir="ltr"><<a href="mailto:passionate_programmer@hotmail.com">passionate_programmer@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">





<div>
<span style="font-family: Arial,'Liberation Sans','DejaVu Sans',sans-serif; font-size: 14px; border-collapse: collapse; line-height: 18px;"><p style="margin: 0px 0px 1em; padding: 0px; border-width: 0px; font-size: 14px; vertical-align: baseline; background-color: transparent; clear: both; word-wrap: break-word;">

I installed the PyDev plugin into Aptana Stdui 3 Beta. Someone suggested me to use PyQt for Python GUI app, and so I downloaded and installed PyQt. But when I open Aptana Studio, I could see a new menu added with the name "PyDev", but there is nothing for PyQt.</p>

<p style="margin: 0px 0px 1em; padding: 0px; border-width: 0px; font-size: 14px; vertical-align: baseline; background-color: transparent; clear: both; word-wrap: break-word;"><br></p><p style="margin: 0px 0px 1em; padding: 0px; border-width: 0px; font-size: 14px; vertical-align: baseline; background-color: transparent; clear: both; word-wrap: break-word;">

In the Windows Start Meny item list, I could see a folder named PyQt and when I open it, there are few tools like Designer.</p><p style="margin: 0px 0px 1em; padding: 0px; border-width: 0px; font-size: 14px; vertical-align: baseline; background-color: transparent; clear: both; word-wrap: break-word;">

<br></p><p style="margin: 0px 0px 1em; padding: 0px; border-width: 0px; font-size: 14px; vertical-align: baseline; background-color: transparent; clear: both; word-wrap: break-word;">When Designer is run, it opens Qt IDE for designing Forms like Visual Studio and the files have the extension .ui.</p>

<p style="margin: 0px 0px 1em; padding: 0px; border-width: 0px; font-size: 14px; vertical-align: baseline; background-color: transparent; clear: both; word-wrap: break-word;">I want to know how to integrate PyQt and PyDev. Do I need to use them separately by adding the .ui files to PyDev and then adding Python core code for functionality?</p>

</span><br></div></blockquote></div><br>After you design your class in the Qt Designer, you need to run pyuic to convert the .ui file to a python file (which you'd probably subclass in another module to add your own code, as you don't want to mess the automatically generated file). If you want, you can add a builder (project > properties > builders) to run pyuic when a .ui file is changed, so you don't have to go to the console to ask pyuic to be rerun every time you change the file.<br>

<br>Cheers,<br><br>Fabio<br><br><br>