[PyQt] Re: question about uic.loadUi

Juan Pablo Romero Méndez jpablo.romero at gmail.com
Fri Nov 2 00:16:00 GMT 2007


I've figured out what was wrong.

Just had to change:

on_action_activated

to

 on_action_triggered.

Thanks anyway.


  JP

On 10/30/07, Juan Pablo Romero Méndez <jpablo.romero at gmail.com> wrote:
> Hello!
>
> I have a problem with uic.loadUi on windows.
>
> I have this code:
> ...
> uic.loadUi("mainwindow.ui", self)
> ...
>
> which connects an action "actionQuit" with:
>
>     def on_actionQuit_activated(self):
>         QtGui.QApplication.quit()
>
>
> the problem is, it doesn't.
>
> I'm using PyQt-Py2.5-gpl-4.3.1-1.exe.
>
> The same code works on linux.
>
> Is there a way to debug the behaviour of uic.loadUi?
>
> Regards
>
>   Juan Pablo
>



More information about the PyQt mailing list