[PyQt] Singelton from QObject

2007-05-22 Thread Nahuel Defossé
I saw in ActiveState page the folowing code to make a singleton: class Borg: __shared_state = {} def __init__(self): self.__dict__ = self.__shared_state # and whatever else you want in your class -- that's all! And in all Qt classes I customize via inheritance I do the folowing

[PyQt] stuck on non-modal dialog

2007-05-22 Thread David J Brooks
I'm sure I must be overlooking something obvious, but I don't see it. Ive set up a main window for MDI and added a Find dialog, with signals and slots to activate it. The dialog pops up as expected, but is totally unresponsive. Nothing typing into its lineEdit does nothing, buttons don't seem t