[PyQt] stuck on non-modal dialog

Henrik Pauli ralesk at muszaki.info
Wed May 23 20:57:45 BST 2007


On 2007. May 23., Hans-Peter Jansen wrote:
> Am Mittwoch, 23. Mai 2007 16:26 schrieb Phil Thompson:
> > On Wednesday 23 May 2007 3:18 pm, David J Brooks wrote:
> > > On Wednesday 23 May 2007 02:22:41 am Phil Thompson wrote:
> > > > On Wednesday 23 May 2007 2:20 am, David J Brooks wrote:
> > > > > class findDialog(QtGui.QDialog):
> > > > >     def __init__(self, parent=None):
> > > > >         QtGui.QDialog.__init__(self, parent)
> > > > >         self.ui=Ui_findDialog()
> > > > >         self.ui.setupUi(self)
> > > > >         self.setModal=(False)
> > > >
> > > > You might want to look at the line above.
> > >
> > > I'm looking, but I'm not sure what I'm meant to see. setModal(False)
> > > shouldn't do anything at all, because the dialog should be non-modal by
> > > default.
> >
> > That's not what the line says.
> >

> You're overwriting the class method with a tuple. That cannot do, what
> you're expecting..
> 

Rather a single value.  A single-item tuple would be (False,) if I remember 
correctly :)

> Phil sparse answers are legendary, he approaching a S/N ratio near 100%.
>

:D  I think it's good, makes one have to think!


More information about the PyQt mailing list