On Sun, Feb 27, 2005 at 11:52:41PM +0000, Gustavo J. A. M. Carneiro wrote:
> On Sat, 2005-02-26 at 08:43 -0300, Christian Reis wrote:
> >On Fri, Feb 25, 2005 at 11:08:00AM +0000, Gustavo J. A. M. Carneiro wrote:
> >>   My solution, although also not perfect, was to place a small
> >> gtk.STOCK_DIALOG_WARNING icon inside the entry, and toggle between
> >> making it insensitive (=value OK) or sensitive (=bad value).
> >
> >Interesting! Can we see some screenshots of this?
> 
>   Attached.  Code in [1], but you won't be able to run it without
> modifications (or installing gnumexp), I'm afraid.

Would it be worse to make the icon invisible instead of inactive?

Second question is if it would be possible to right-align the icon
(instead of left-aligning it, where it makes reading a bit more
difficult).

> > I had never thought of
> >this approach and it sounds way cool (though it _does_ take up some of
> >the entry's real estate). Dream scenario might be a window which
> >overlays the screen when a validation error occurs.
> 
>   Now that I don't understand.  Can you explain better?  "window which
> overlays the screen"?

Basically, balloon help for input errors.

    .---------------------------.
    | sin(x)+ .---------------------------------------.
    '---------| /!\ This should be a valid expression |
              '---------------------------------------'

It could be that this appeared only when a certain time had passed
(though the input would still be considered invalid) or if focus left
the input area.

But I have come to generally think that multiple mechanisms for
different types of validation errors are the way to go; that implies
having a [small] set of forms of feedback implemented in a library.

>   An interesting idea that I might try someday would be to reserve some
> empty space in the dialogue window, and display in that space validation
> errors as they occur.

We do this in some of our interfaces; it works well but requires you to
design this in up-front.

> [2] http://www.galilea.cl/~snmartin/b2evolution/blogs/index.php

Interesting, will take a look.

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to