On Wed, Dec 24, 2008 at 11:35 PM, Terry Brown <[email protected]> wrote:
> Actually connecting in designer-qt4 seems to be working fine... now > that I'm now not using the same name for the button and the slot.... > doh. > > Apart from a certain loss of dynamism, what bad thing happens when you > use designer to connect things? There are no real "slots" in PyQt side (everything is a slot), so I was actually a little surprised that it worked in the first place. My points against using the slots feature of ui designer: - It doesn't check that the slot "doSomething"is available (stored as just a string). If you rename that function, your program will start, you just won't see the signals triggering. - It smuggles "logic" in the "view" side of the program. I like to think of the .ui file as something you can give to a nonprogrammer without fearing that something breaks (something that you can't see anyway). - The feature is not really needed. It's easy enough to write the connect statements in code. -- Ville M. Vainio http://tinyurl.com/vainio --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
