Re: [PyKDE] Connect syntax.

2004-09-23 Thread Bryan O'Sullivan
On Thu, 2004-09-23 at 18:32 +0200, Sundance wrote: > The Principle of Least Surprise, I suppose. I'll venture that Phil's > clients are in good part people who already know Qt and are moving to > Python. It would not be very good marketing to surprise them with > significant API changes, I supp

Re: [PyKDE] Connect syntax.

2004-09-23 Thread Sundance
I heard Bryan O'Sullivan said: > What's wrong with not respecting the Qt API? The Principle of Least Surprise, I suppose. I'll venture that Phil's clients are in good part people who already know Qt and are moving to Python. It would not be very good marketing to surprise them with significant

Re: [PyKDE] Connect syntax.

2004-09-23 Thread Bryan O'Sullivan
On Thu, 2004-09-23 at 15:30 +0200, Sundance wrote: > Oh, it was just an idea about allowing this syntax: > someButton.connect(SIGNAL("clicked()"), otherObject.someMethod) > > IE, making the first argument implicit when connect() is used as an > instance method. Which seems a LOT more logical a

Re: [PyKDE] Connect syntax.

2004-09-23 Thread Sundance
I heard David Boddie said: > Can't you achieve this by rebinding connect like you suggested > before? Yep, in fact that's what I'm planning to do in a small homemade wrapper around PyQt. > Did I miss that part of the discussion? :-/ Oh, it was just an idea about allowing this syntax: someBut

Re: [PyKDE] Connect syntax.

2004-09-23 Thread David Boddie
On Wed, 22 Sep 2004 20:11:37, Sundance wrote: > I heard Phil Thompson said: > > > I have a policy of not (if at all possible) changing or "enhancing" > > the API. > > C++ Qt: > > SomeWidget::SomeWidget () { > // ... > connect (this, SIGNAL("whatever()"),// <-- look! >

Re: [PyKDE] Connect syntax.

2004-09-22 Thread Sundance
I heard Phil Thompson said: > I have a policy of not (if at all possible) changing or "enhancing" > the API. C++ Qt: SomeWidget::SomeWidget () { // ... connect (this, SIGNAL("whatever()"),// <-- look! otherWidget, SLOT("blah()")); // ... } Current PyQt: class

Re: [PyKDE] Connect syntax.

2004-09-22 Thread Phil Thompson
On Wednesday 22 September 2004 6:10 pm, Sundance wrote: > Hello, > > It occured to me, while I was code-doodling today, that as it currently > stands, the connect syntax in Python is just a tiny little bit more > awkward than necessary. > > See: > > class MyNiftyLittleWidget(QSomeWidget): > > def

[PyKDE] Connect syntax.

2004-09-22 Thread Sundance
Hello, It occured to me, while I was code-doodling today, that as it currently stands, the connect syntax in Python is just a tiny little bit more awkward than necessary. See: class MyNiftyLittleWidget(QSomeWidget): def __init__(self, otherWidget): # ... # Blah # ... self.c