Right, i forgot cause i was using a QWidget in the class, but now I've changed to right QDockWidget and gives me Segmentation fault and of course my App does not start...<br><br>Just in case, my class for that widget is:<br>
<br><div style="margin-left: 40px;">class WorkstationDockWidget (QDockWidget, Ui_workstationDockWidget):<br> def __init__(self, id= "", descripcion= "", ip= "", mac= "", conf= "", parent = None):<br>
QDockWidget.__init__(self, parent)<br> self.setupUi(self)<br><br></div>Thanks<br><br><br>GuS<br><br><div class="gmail_quote">2008/6/11 Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Wednesday 11 June 2008 1:43:36 pm Gustavo A. Díaz wrote:<br>
> Hi guys, i was creating a QDockWidget only widget to integrate it on my<br>
> application. So, I've created from Qt Designer and exported to .py as well.<br>
><br>
> When i execute my App, i have:<br>
><br>
> File "gui/ui_workstationDockWidget.py", line 16, in setupUi<br>
> workstationDockWidget.setFloating(False)<br>
> AttributeError: setFloating<br>
><br>
> I am ataching the ui.<br>
><br>
> Cheers.<br>
<br>
</div>Looks like the widget you are passing to setupUi() isn't a QDockWidget.<br>
<br>
Phil<br>
<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><br clear="all"><br>-- <br>Gustavo A. Díaz<br>GDNet Projects<br><a href="http://www.gdnet.com.ar">www.gdnet.com.ar</a>