Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-11 Thread Ronald Oussoren
On 11-mei-2006, at 8:45, Talin wrote: > Josiah Carlson wrote: >> Having identical behavior on all platforms is wonderful, I'm very >> happy >> for you and everyone else with a toolkit (programming language, >> etc.) that >> does the same. For the rest of us who cannot use PyQt for one >> re

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-10 Thread Talin
Josiah Carlson wrote: > Having identical behavior on all platforms is wonderful, I'm very happy > for you and everyone else with a toolkit (programming language, etc.) that > does the same. For the rest of us who cannot use PyQt for one reason or > another (licensing...), we must rely on non-Qt too

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-10 Thread Josiah Carlson
"Giovanni Bajo" <[EMAIL PROTECTED]> wrote: > It's sufficient to show that a library that uses native widget has to go > through many hoops to implement any slightly non-standard feature. And > causes the mental overhead which makes it unpythonic. I would disagree. The fact that it can be done, i

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-10 Thread Greg Ewing
Giovanni Bajo wrote: > Then, I'd like to have a name for 1,0,-1 instead of using the bare numbers (in > case there are 4 buttons...). There aren't any standard dialogs in PyGUI with 4 buttons, so that problem doesn't arise. :-) I could provide some names, Yes = 1, No = 0, etc. But since you can

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-10 Thread Giovanni Bajo
Josiah Carlson wrote: >> Show me a combo-box with selects among items with both text and a >> bitmap, done with wxPython, on all platforms. > > How about I describe how one can make it happen? > > There was a somewhat recent post in wxpython-users which offered a > reimplementation of wx.PopupWind

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-10 Thread Josiah Carlson
"Giovanni Bajo" <[EMAIL PROTECTED]> wrote: > Show me a combo-box with selects among items with both text and a > bitmap, done with wxPython, on all platforms. How about I describe how one can make it happen? There was a somewhat recent post in wxpython-users which offered a reimplementation of w

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-10 Thread Jim Jewett
On 5/9/06, Giovanni Bajo <[EMAIL PROTECTED]> wrote: > ??? Events, slots and signals are all public parts of a GUI API. They happen to be public parts of many existing GUI APIs. This does not mean that they need to be exposed unchanged as part of the default python UI API. I know that there are

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-10 Thread Talin
Greg Ewing wrote: >>Qt, Java Swing, and .Net Windows.Forms are all examples of what I would >>consider "good" API designs. All three of them are powerful, >>comprehensive, and have relatively clean APIs. I would be perfectly >>satisfied to have the equivalent of any one of them in the Python sp

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-10 Thread Giovanni Bajo
>> [Antoine Pitrou] >> But magic numbers are ugly, even if they are hidden behind an >> enumeration. If you try to print them for debugging, it will only show >> the numeric values, which is hardly intuitive. >> [...] >> [Giovanni Bajo] >> No, you're over-generalizing. What if I wanted the buttons

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-09 Thread Greg Ewing
Talin wrote: > Qt, Java Swing, and .Net Windows.Forms are all examples of what I would > consider "good" API designs. All three of them are powerful, > comprehensive, and have relatively clean APIs. I would be perfectly > satisfied to have the equivalent of any one of them in the Python space.

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-09 Thread Greg Ewing
Giovanni Bajo wrote: > No, you're over-generalizing. What if I wanted the buttons Ok/Cancel instead? > Or "Abort"/"Retry"/"Cancel"? The mental overhead is having to remember > different APIs from the Yes/No case, if you're going to use a specialized > version returning just a boolean. In PyGUI I'

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-09 Thread Talin
Giovanni Bajo wrote: > But, if Java *really* did it, let's *copy* it. My point is exactly that: Qt > *did* it, so let's use it. wxWidgets does *exactly* what you want: it's a > common abstraction over different native toolkit libraries. wxPython is very > widespread and accepted by the community.

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-09 Thread Giovanni Bajo
Antoine Pitrou <[EMAIL PROTECTED]> wrote: >> No, you're over-generalizing. What if I wanted the buttons Ok/Cancel >> instead? Or "Abort"/"Retry"/"Cancel"? The mental overhead is having >> to remember different APIs from the Yes/No case, if you're going to >> use a specialized version returning jus

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-09 Thread Giovanni Bajo
Talin <[EMAIL PROTECTED]> wrote: >> I don't agree with much of what you propose basically because I >> think it's hopeless to create a wrapper API above all the toolkits. >> There are far too many "details" which are different (just thinking >> of events, application event loops, signals/slots, HW

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-09 Thread Antoine Pitrou
Le mercredi 10 mai 2006 à 03:23 +0200, Giovanni Bajo a écrit : > No, you're over-generalizing. What if I wanted the buttons Ok/Cancel instead? > Or "Abort"/"Retry"/"Cancel"? The mental overhead is having to remember > different APIs from the Yes/No case, if you're going to use a specialized > vers

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-09 Thread Giovanni Bajo
Jim Jewett <[EMAIL PROTECTED]> wrote: >>> To just create a preference picker and an OK/Cancel dialog -- the >>> mental overhead really shouldn't be much worse than using a single >>> python module from the standard library. (And yes, this rules out >>> using pretty much any existing framework as

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-09 Thread Talin
Giovanni Bajo develer.com> writes: > I don't agree with much of what you propose basically because I think it's > hopeless to create a wrapper API above all the toolkits. There are far too many > "details" which are different (just thinking of events, application event > loops, signals/slots, HW

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-09 Thread Jim Jewett
On 5/9/06, Giovanni Bajo <[EMAIL PROTECTED]> wrote: > Jim Jewett <[EMAIL PROTECTED]> wrote: > > To just create a preference picker and an OK/Cancel dialog -- the > > mental overhead really shouldn't be much worse than using a single > > python module from the standard library. (And yes, this rule

Re: [Python-3000] GUI -- an API, not a toolkit

2006-05-09 Thread Giovanni Bajo
Jim Jewett <[EMAIL PROTECTED]> wrote: > To just create a preference picker and an OK/Cancel dialog -- the > mental overhead really shouldn't be much worse than using a single > python module from the standard library. (And yes, this rules out > using pretty much any existing framework as the API.

[Python-3000] GUI -- an API, not a toolkit

2006-05-09 Thread Jim Jewett
On 5/9/06, Ivan Krstic <[EMAIL PROTECTED]> wrote: > Jim Jewett wrote: > > By spitting out html and javascript, rather than draw/paint commands. > I was afraid you were going to say that. I, for one, welcome our new > AJAX overlords, but to want to task a general GUI toolkit with producing > HTML a