[Tutor] question about object oriented programming and inheritance using datetime module

2007-01-15 Thread tpc
hey guys, I've been experimenting with Python's datetime module, and I created a function that, given a person's birthdate, calculates how old that person is. Now I want to create a class called age_calculator that does much the same thing. My class inherits from the date class, but I have to ty

Re: [Tutor] question about object oriented programming and inheritance using datetime module

2007-01-15 Thread Luke Paireepinart
[EMAIL PROTECTED] wrote: > hey guys, I've been experimenting with Python's datetime module, and I > created a function that, given a person's birthdate, calculates how > old that person is. Now I want to create a class called > age_calculator that does much the same thing. My class inherits fr

Re: [Tutor] question about object oriented programming and inheritance using datetime module

2007-01-15 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > hey guys, I've been experimenting with Python's datetime module, and I > created a function that, given a person's birthdate, calculates how old > that person is. Now I want to create a class called age_calculator that > does much the same thing. Why? You have a pe

Re: [Tutor] Is Python the language for me?

2007-01-15 Thread Chuck Coker
Andy, Disclaimer: I'm a Python newbie, although I've been developing software for many years. (In my humble opinion,) Luke makes some critically important points here. The first one has to do with programming ~concepts~. LP> As an introductory language to Computer Science I'd recommend LP> Pytho

Re: [Tutor] Is Python the language for me?

2007-01-15 Thread Terry Carroll
On Sun, 14 Jan 2007, Luke Paireepinart wrote: > Okay, first thing to note: a lot of Python developers prefer wxPython > to Tkinter. I'd second this. I've never used wxPython, because the documentation is not (at least to me) well suited to learning it (as opposed to using it once you already

Re: [Tutor] Is Python the language for me?

2007-01-15 Thread Kent Johnson
Andy wrote: > So as you can see I feel that each language has it's own pro's and > con's and I might end up learning them both eventually. Do you all > think Python will work for what I want right now? You don't say, but it sounds like you are just starting out with programming. I strongly seco

Re: [Tutor] Change the font size of the lines and rectangle on aTkinter Canvas

2007-01-15 Thread Alan Gauld
"Asrarahmed Kadri" <[EMAIL PROTECTED]> wrote > I want to provide with a functionality of changing the font size, in > this > case the width of the lines. Its not really the font size. fonts only apply to text, its only the line width you want to change. However todo that I think the easiest way

[Tutor] [Fwd: Re: Is Python the language for me?]

2007-01-15 Thread Luke Paireepinart
Alan accidentally e-mailed me directly.. forwarding to list! :) --- Begin Message --- Andy wrote: Hey everyone, I'm looking to get the opinions of some people with more experience then myself. Currently I only have time to learn one language and I'm torn between C++ and Python. If you have t