Why is PyQt connect() syntax so verbose?

后端 未结 3 1958
庸人自扰
庸人自扰 2020-11-30 09:22

I\'m just learning PyQt and looking at the Signals and Slots mechanism. I\'m a bit baffled by the verbose syntax. Why do we have:

self.connect(dial, SIGNAL(\         


        
3条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 10:04

    Luper's answer is much better than this one, but for the sake of completeness...

    The ugly "old style" syntax is an anachronism from the C++ world - just look at the syntax those guys have to work with! Yucky...

提交回复
热议问题