<div class="gmail_quote">On Fri, Jan 7, 2011 at 2:53 PM, 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>
Where is this tool, PyUiC, located?<br></div></blockquote><div><br>At my install it's at c:\bin\Python265\Lib\site-packages\PyQt4\pyuic.bat (it's a bat, so, the actual executable must be cmd.exe).. internally it calls:<br>

@"D:\bin\python265\python.exe" "D:\bin\python265\Lib\site-packages\PyQt4\uic\pyuic.py" %1 %2 %3 %4 %5 %6 %7 %8 %9<br><br>So, maybe you can put your executable as python with the parameter being the pyuic.py.<br>

<br>Cheers,<br><br>Fabio<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div class="hm"><br><hr>From: <a href="mailto:fabiofz@gmail.com" target="_blank">fabiofz@gmail.com</a><br>

Date: Fri, 7 Jan 2011 10:09:48 -0200<br>Subject: Re: [PyQt] Working with PyQt and Pydev<br>To: <a href="mailto:passionate_programmer@hotmail.com" target="_blank">passionate_programmer@hotmail.com</a><br>CC: <a href="mailto:pyqt@riverbankcomputing.com" target="_blank">pyqt@riverbankcomputing.com</a>; <a href="mailto:python-list@python.org" target="_blank">python-list@python.org</a></div>

<div><div></div><div class="h5"><br><br><div>On Thu, Jan 6, 2011 at 9:32 AM, Rohit Coder <span dir="ltr"><<a href="mailto:passionate_programmer@hotmail.com" target="_blank">passionate_programmer@hotmail.com</a>></span> wrote:<br>

<blockquote style="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="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="padding: 0px; border-width: 0px; font-size: 14px; vertical-align: baseline; background-color: transparent; clear: both; word-wrap: break-word;"><br></p><p style="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="padding: 0px; border-width: 0px; font-size: 14px; vertical-align: baseline; background-color: transparent; clear: both; word-wrap: break-word;">



<br></p><p style="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="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></div></div><div><div></div><div class="h5"><div><h2>element</h2><table><tbody><tr><th colspan="2">Font</th></tr><tr><td>font-family</td><td></td></tr><tr><td>font-size</td><td></td></tr>

<tr><td>font-style</td><td></td></tr><tr><td>font-variant</td><td></td></tr><tr><td>font-weight</td><td></td></tr><tr><td>letter-spacing</td><td></td></tr><tr><td>line-height</td><td></td></tr><tr><td>text-decoration</td>

<td></td></tr><tr><td>text-align</td><td></td></tr><tr><td>text-indent</td><td></td></tr><tr><td>text-transform</td><td></td></tr><tr><td>white-space</td><td></td></tr><tr><td>word-spacing</td><td></td></tr><tr><td>color</td>

<td></td></tr><tr><th colspan="2">Background</th></tr><tr><td>bg-attachment</td><td></td></tr><tr><td>bg-color</td><td></td></tr><tr><td>bg-image</td><td></td></tr><tr><td>bg-position</td><td></td></tr><tr><td>bg-repeat</td>

<td></td></tr><tr><th colspan="2">Box</th></tr><tr><td>width</td><td></td></tr><tr><td>height</td><td></td></tr><tr><td>border-top</td><td></td></tr><tr><td>border-right</td><td></td></tr><tr><td>border-bottom</td><td></td>

</tr><tr><td>border-left</td><td></td></tr><tr><td>margin</td><td></td></tr><tr><td>padding</td><td></td></tr><tr><td>max-height</td><td></td></tr><tr><td>min-height</td><td></td></tr><tr><td>max-width</td><td></td></tr>
<tr>
<td>min-width</td><td></td></tr><tr><td>outline-color</td><td></td></tr><tr><td>outline-style</td><td></td></tr><tr><td>outline-width</td><td></td></tr><tr><th colspan="2">Positioning</th></tr><tr><td>position</td><td></td>

</tr><tr><td>top</td><td></td></tr><tr><td>bottom</td><td></td></tr><tr><td>right</td><td></td></tr><tr><td>left</td><td></td></tr><tr><td>float</td><td></td></tr><tr><td>display</td><td></td></tr><tr><td>clear</td><td></td>

</tr><tr><td>z-index</td><td></td></tr><tr><th colspan="2">List</th></tr><tr><td>list-style-image</td><td></td></tr><tr><td>list-style-type</td><td></td></tr><tr><td>list-style-position</td><td></td></tr><tr><th colspan="2">

Table</th></tr><tr><td>vertical-align</td><td></td></tr><tr><td>border-collapse</td><td></td></tr><tr><td>border-spacing</td><td></td></tr><tr><td>caption-side</td><td></td></tr><tr><td>empty-cells</td><td></td></tr><tr>
<td>
table-layout</td><td></td></tr><tr><th colspan="2">Effects</th></tr><tr><td>text-shadow</td><td></td></tr><tr><td>-webkit-box-shadow</td><td></td></tr><tr><td>border-radius</td><td></td></tr><tr><th colspan="2">Other</th>

</tr><tr><td>overflow</td><td></td></tr><tr><td>cursor</td><td></td></tr><tr><td>visibility</td><td></td></tr></tbody></table></div>                                          </div></div></div>
<br>_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br>