2010/11/21 Dominik "Socek" Długajczyk <[email protected]>:
> I have a problem. Using ".show()" on "second window". It does not work
> from a slot method (after clicking a button). Does this is know bug,
> or I have made something wrong ?
> Code looks like this:
>
> @QtCore.Slot()
>    def optionswindow(self):
>        options = OptionsWindow()
>        options.show()

My guess: the "options" object is being destroyed by the Python
garbage collection after it loses scope. Try creating a reference to
it so it is not destroyed by the garbage collector, e.g.:

> @QtCore.Slot()
>    def optionswindow(self):
>        self.options = OptionsWindow()
>        self.options.show()

Regards,
-- 
Anderson Lizardo
OpenBossa Labs - INdT
Manaus - Brazil
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to