wxTextCtrl was: Re: [wxPython] wxGrid confusion.

I agree with this totally.

Best wishes

Lynndon Harnell

···

-----Original Message-----
From: Magnus Lyckå [mailto:magnus@thinkware.se]
Sent: Wednesday, 19 December 2001 11:26 PM
To: wxpython-users@lists.wxwindows.org
Subject: wxTextCtrl was: Re: [wxPython] wxGrid confusion.

At 10:09 2001-12-17 -0800, Robin Dunn wrote:

The price of great flexibility is great complexity.

That sounds like some kind of Perl motto! :frowning:

In Python I'm used to having great flexibility
and little complexity. Aren't you? :slight_smile: I haven't
quite thought of it like that before, but now that
I think of it... That _is_ Python:

   Great flexibility and small complexity! :slight_smile:

I guess the complexibility is higher in GUI programming
than in many other types of programming, and making
a thin layer over a C++ tool kit like this doesn't fully
hide the higher complexity / flexibility ratio of C++.
I can live with C++, but I'm getting lazy from all this
comfortable Python coding. :slight_smile:

I'm not completely happy with the wxTextCtrl, and
particularly not with the way it's used in grids. When
I see that right alignment is implemented as a sub class
I start to hear these little warning bells in the back
of my head. (I assume that is to be seen as a temporary
fix.) I hope that wxTextCtrl will evolve, getting all
the styles and attibutes that could be expected from such
a thing, and to make it easy to add different features to
a control without shooting yourself in the foot. Now I
feel that fixing one thing all to often has unexpected
side effects.

But I guess I'm whining on the wrong list. This is a
wxWindows problem, not a wxPython issue...

Anyway, I certainly don't hold any grudge against the
people who are providing me with this tool kit that I
generally really like. Particularly considering how much
I am paying to use it... :slight_smile:

Maybe I belong to a minority here, who feel that this is
a problem? For me, one row text entry widgets are among
the most commonly used. I make a lot of boring administrative
software where people fill in fields with specific info.

The data might have to be right aligned, or left aligned,
and validated, adjusted, formatted, filtered, lenght limited,
hidden, required, protected etc in all sorts of combinations.

Is there anyone else who feel that this is any area to
give some attention to?

/Magnus

--
Magnus Lycka, Thinkware AB
Alvans vag 99, SE-907 50 UMEA, SWEDEN
phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
http://www.thinkware.se/ mailto:magnus@thinkware.se

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users

I'm not completely happy with the wxTextCtrl, and
particularly not with the way it's used in grids. When
I see that right alignment is implemented as a sub class
I start to hear these little warning bells in the back
of my head. (I assume that is to be seen as a temporary
fix.) I hope that wxTextCtrl will evolve, getting all
the styles and attibutes that could be expected from such
a thing, and to make it easy to add different features to
a control without shooting yourself in the foot. Now I
feel that fixing one thing all to often has unexpected
side effects.

I am the author of wxRightTextCtrl. I fully agree with you. I think
wxTextCtrl should have a style flag to be right aligned (like static textx,
by the way). I have been waiting for these for a year and a half, but
finally, I couldn't wait (you know, clients can be very convincing).

My wxRightTextCtrl is a quick solution for a problem i had in an application
my company is developing. I am sure it would be not difficult to do a python
wrapper around wxWindows using this technique to make wxTextCtrl like we want.
But unfortunately, we have no time actually.

(Other thing in our todo list is getting right aligning work in Linux).

But I guess I'm whining on the wrong list. This is a
wxWindows problem, not a wxPython issue...

Yes

/Magnus

Josu Oyanguren
Ubera Servicios Informáticos

···

El Jueves 20 Diciembre 2001 00:16, escribió: