[Tutor] intefaces in python

2009-06-28 Thread Amit Sethi
Hi , I don't suppose python has a concept of interfaces. But can somebody tell me if their is a way i can implement something like a java interface in python. -- A-M-I-T S|S ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo

Re: [Tutor] intefaces in python

2009-06-28 Thread Alan Gauld
"Amit Sethi" wrote Hi , I don't suppose python has a concept of interfaces. Yes and No, I'll come back to that... But can somebody tell me if their is a way i can implement something like a java interface in python. First, can you tell me why you would want to? Java style interfaces tend

Re: [Tutor] syntax error

2009-06-28 Thread Alan Gauld
"Christopher Altieri" wrote loaded python 3 and 3.1 several times on vista. tried first command: print "hello world' but keep getting syntax error. what am I doing wrong? Using Python 3 to learn Python! :-) Seriously, You would be better downgrading to Python 2.6 to learn because v3 has in

Re: [Tutor] intefaces in python

2009-06-28 Thread Bob Rea
On Sun June 28 2009 1:48 pm, Alan Gauld wrote: > advantages to them over defining, say, a mixin Noob, here, wanted to know what a mixin is eh, just getting back into learning python googled it, still not sure what it is, but wikipedia says the name come from ice cream mixins at Steve's Ice Cream

[Tutor] Tkinter Button Issue

2009-06-28 Thread Adam Cunningham
Hi, I was hoping someone may be able to help me on an issue I'm having with Tkinter buttons; or more specifically, the background and foreground settings. I've created a program that is supposed to simulate an order system: the first section (frame) is where the user adds items to the order and the

[Tutor] freeze

2009-06-28 Thread col speed
HI Guys, I have a small programme, called shop.py, that I wish to make into a "frozen binary" ( I think that's right - I'm using Linux Ubuntu 9.04 and I want the programme to work on a windows computer that doesn't have Python installed). I used freeze.py from examples/Tools and everything seemed

Re: [Tutor] character counter

2009-06-28 Thread Christian Witts
julie wrote: Hello, I need help with the following problem: *Write a loop that reads each line of a file and counts the number of lines that are read until the total length of the lines is 1,000 characters. Use a break statement to make sure that you don't continue reading the file once the

Re: [Tutor] Tkinter Button Issue

2009-06-28 Thread Lie Ryan
Adam Cunningham wrote: > Hi, I was hoping someone may be able to help me on an issue I'm having > with Tkinter buttons; or more specifically, the background and > foreground settings. > > I've created a program that is supposed to simulate an order system: the > first section (frame) is where the

Re: [Tutor] intefaces in python

2009-06-28 Thread Lie Ryan
Bob Rea wrote: > On Sun June 28 2009 1:48 pm, Alan Gauld wrote: >> advantages to them over defining, say, a mixin > > Noob, here, wanted to know what a mixin is > eh, just getting back into learning python > googled it, still not sure what it is, but > wikipedia says the name come from ice cream m