To Robin Dunn

Chester,

Robin, I have asked Julian Smart if he could make wx.CENTER but he said that it already exists (besides wx.CENTRE that is). However, there's no wx.CENTER in wxPython. Can you make it, please?

What are you talking about? I use wx.CENTER in my sizers all the time to center the widgets horizontally, vertically or both. I think I've even used it to center a dialog or frame on the screen. Are you talking about some kind of obscure use for it?

Pardon my confusion.

Mike

Sheesh !

(I don't dare think you *believe* what you say there.)

Karsten

···

On Tue, May 06, 2008 at 09:24:09PM +0200, Chester wrote:

No. It doesn't exist for the Windows version of wxPython 2.8.7.1 as far as I
can tell. Anyway, I wonder whether Julian Smart is a Brit. I was looking at
the wxWidgets source code and I hate that the British English naming
(wx.CENTRE) is the primary name, and then wx.CENTER (the American English
naming) is made just as an alias to wx.CENTRE. I don't have anything against
British English but I feel that American English is somewhat the mainstream
language. Is it not?

--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

Karsten,

···

On Tue, May 06, 2008 at 09:24:09PM +0200, Chester wrote:

No. It doesn't exist for the Windows version of wxPython 2.8.7.1 as far as I
can tell. Anyway, I wonder whether Julian Smart is a Brit. I was looking at
the wxWidgets source code and I hate that the British English naming
(wx.CENTRE) is the primary name, and then wx.CENTER (the American English
naming) is made just as an alias to wx.CENTRE. I don't have anything against
British English but I feel that American English is somewhat the mainstream
language. Is it not?
    
Sheesh !

(I don't dare think you *believe* what you say there.)

Karsten
  

I think the Brit English is actually kind of appropriate since Python got it's name from a British comedy troupe. And just to be ornery, Chinese is the most "popular", if you define popular as being the number of people who speak it.

Mike

Chester wrote:

Andrea, I've tried import wx; wx.CENTER on the Windows version of wxPython 2.8.7.1 <http://2.8.7.1> Unicode and it doesn't exist, i.e. it spits '0'.

Then it does exist. It is simply a integer flag. If it didn't exist, you'd get:

Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'CENTER'

This is what I get:
>>> wx.CENTRE is wx.CENTRE
True

By the way, writing to Open Source developers with messages like: "Please change your library to be more how I'd like it" is unlikely to get you very far.

Try using it for a while, take part in the community, then, if you have ideas for real improvements, start be politely inquiring why it is done the way it is (there may be good reasons!), then work on and submit a patch.

Also: the odds are very good that the first few "bugs" you find are actually misunderstandings on your part -- assume that when you ask a question.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Ah, never mind. Let us just code on! :wink:

···

On Tue, May 6, 2008 at 10:44 PM, Karsten Hilbert Karsten.Hilbert@gmx.net wrote:

On Tue, May 06, 2008 at 10:37:25PM +0200, Chester wrote:

I didn’t say that American English is “popular”. All I said was that I

“feel” that it is the mainstream language.

Shall we agree that when you say “mainstream language” you

mean something other than what it sounds like ?

Karsten,

naming) is made just as an alias to wx.CENTRE. I don’t have anything

against British English but I feel that American English is somewhat the

mainstream language. Is it not?

Sheesh !

(I don’t dare think you believe what you say there.)

Karsten

I think the Brit English is actually kind of appropriate since Python got

it’s name from a British comedy troupe. And just to be ornery, Chinese is

the most “popular”, if you define popular as being the number of people who

speak it.

Mike, I couldn’t agree more. Hence the Sheesh. More than

half the world’s population doesn’t even understand the

“mainstream” language let alone speak it.

But I suppose the OP wanted to say something a lot less evocative.

Karsten

GPG key ID E4071346 @ wwwkeys.pgp.net

E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

I’ve learned all my spelling from the movies too.

···

On Tue, May 6, 2008 at 1:37 PM, Chester wxpythoner@gmail.com wrote:

I didn’t say that American English is “popular”. All I said was that I “feel” that it is the mainstream language. Maybe I feel that way because I watch too many movies which as a language use American English. Oh, by-the-way, I’m not a native. :slight_smile:

Being a non-native brings a question. What’s the difference between a movie and a film? Is that again an American English / British English thing?


Stand Fast,
tjg.

You can see how movies/books can affect a man to make a false judgment. I made a false judgment that ‘center’ is better than ‘centre’ and that is just because I’m used to read ‘center’ all the time. So what is mainstream then? Is it the word ‘center’ or ‘centre’?

···

On Tue, May 6, 2008 at 11:24 PM, Timothy Grant timothy.grant@gmail.com wrote:

On Tue, May 6, 2008 at 1:37 PM, Chester wxpythoner@gmail.com wrote:

I didn’t say that American English is “popular”. All I said was that I “feel” that it is the mainstream language. Maybe I feel that way because I watch too many movies which as a language use American English. Oh, by-the-way, I’m not a native. :slight_smile:

Being a non-native brings a question. What’s the difference between a movie and a film? Is that again an American English / British English thing?

I’ve learned all my spelling from the movies too.


Stand Fast,
tjg.


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

I read or heard somewhere (The Story of English on BBC?) that
were Shakespeare alive today, he'd be more comfortable with
American English than British English. American English forked
off back in the early 18th century and has apparently changed
less (less exposure to other languages?).

In any case...

In the open-source world whoever writes the source code gets to
pick the spellings. If Chester doesn't like the way things are
spelled, he's free to write his own widget-set (or to fork
wxWidgets/wxPython if he desires).

···

On 2008-05-06, Wayne Koorts <wayne@wkoorts.com> wrote:

naming) is made just as an alias to wx.CENTRE. I don't have
anything against British English but I feel that American
English is somewhat the mainstream language. Is it not?

No, it's not. Only in America. The rest of the world speaks
real English.

--
Grant Edwards grante Yow! ... The waitress's
                                  at UNIFORM sheds TARTAR SAUCE
                               visi.com like an 8" by 10" GLOSSY...

Hi Chester,

Could you please bottom post, as reading first

the answer and

then having to look for the question is getting very quickly confusing.

Chester wrote:

Andrea, I've tried import wx; wx.CENTER on the Windows version of wxPython 2.8.7.1 <http://2.8.7.1> Unicode and it doesn't exist, i.e. it spits '0'.

That would surprise me, I get:
# Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]
# wxPython 2.8.4.0, Boa Constructor 0.6.1
# Type "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.Center
6
>>> wx.Centre
6
>>> wx.CENTRE
1
>>> wx.CENTER
1
>>> wx.CENTER_ON_PARENT
  File "<console>", line 1, in <module>
''' <type 'exceptions.AttributeError'> : 'module' object has no attribute 'CENTER_ON_PARENT' '''
>>> wx.CENTRE_ON_PARENT
  File "<console>", line 1, in <module>
''' <type 'exceptions.AttributeError'> : 'module' object has no attribute 'CENTRE_ON_PARENT' '''

I wasn't trying this with the latest trunk. As far as I know that this is included now, I am looking forward to the new wxPython release. :wink:

BTW, do you have any idea how can i test whether wx.CENTER_ON_PARENT (besides wx.CENTRE_ON_PARENT) exists as well?

I use Boa so, I do Ctrl-h enter 'center' and press enter, this brings up the help and shows entries which relate to my search string (in English or English by the way :wink: ).

Here is what I found, i.e. what you are looking for is not a style flag, but they are methods of the wx.Windows class.

Center(self, direction=BOTH)
Centers the window. The parameter specifies the direction for cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may also include wx.CENTER_ON_SCREEN flag if you want to center the window on the entire screen and not on its parent window. If it is a top-level window and has no parent then it will always be centered relative to the screen.
Parameters:
direction
           (type=int)

CenterOnParent(self, dir=BOTH)
Center with respect to the the parent window
Parameters:
dir
           (type=int)

Centre(self, direction=BOTH)
Centers the window. The parameter specifies the direction for cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may also include wx.CENTER_ON_SCREEN flag if you want to center the window on the entire screen and not on its parent window. If it is a top-level window and has no parent then it will always be centered relative to the screen.
Parameters:
direction
           (type=int)

CentreOnParent(self, dir=BOTH)
Center with respect to the the parent window
Parameters:
dir
           (type=int)

Werner