[Tutor] Zooming option in TKinter

2008-01-08 Thread goldgod a
hi, I am developing one project using python-tkinter. I want to know whether the zoom in and zoom out option is present in Tkinter. If it is not present then Can you give some idea to create a option in manually. -- Thanks & Regards, goldgod ___ Tu

Re: [Tutor] Pyflakes pre-commit hook in subversion

2008-01-08 Thread mobiledreamers
yes the link is broken and hence i sent it in since it is a conf file for svn pre-commit hook so pyflakes is run of your tree and it emits an error if python files have any error preventing bad commits poisoning svn tree so dev can fix the bug and recommit On Jan 8, 2008 8:08 PM, Kent Johnson <[EM

Re: [Tutor] Pyflakes pre-commit hook in subversion

2008-01-08 Thread Kent Johnson
Why are you sending this to the tutor list? Do you have a question? Kent [EMAIL PROTECTED] wrote: > yes the link is broken and hence i sent it in > since it is a conf file for svn pre-commit hook > so pyflakes is run of your tree and it emits an error if python files > have any error preventing

Re: [Tutor] subclassing strings

2008-01-08 Thread Eric Abrahamsen
Thanks both of you, that cleared a lot of things up. On Jan 9, 2008, at 11:49 AM, Kent Johnson wrote: > > No, you can't access the actual byte array from Python and you can't > damage it. I don't know a lick of C and probably never will, but I do like to know what it is, exactly, that I don't

Re: [Tutor] Pyflakes pre-commit hook in subversion

2008-01-08 Thread Kent Johnson
Mark wrote: > The small "configuration" file for enforce can be found here > . That link is broken. > > Can you share enforcer file? or a means to ensure safe code in python repo I don't understand what you are asking. Kent _

Re: [Tutor] subclassing strings

2008-01-08 Thread Kent Johnson
Tiger12506 wrote: > PS. Anyone who's interested. A significant study of C has brought me to > these conclusions. > immutable -> implemented with static buffer > mutable -> implemented with linked list > Anyone know a little more detail? Certainly not true of Python. I don't know of any standard Py

Re: [Tutor] subclassing strings

2008-01-08 Thread Kent Johnson
Eric Abrahamsen wrote: > When I create a string like so: > > x = 'myvalue' > > my understanding is that this is equivalent to: > > x = str('myvalue') > > and that this second form is more fundamental: the first is a > shorthand for the second. The second does nothing that the first doesn't

Re: [Tutor] subclassing strings

2008-01-08 Thread Tiger12506
Ahh. Excellent questions. > I'm playing around with subclassing the built-in string type, and > realizing there's quite a bit I don't know about what's going on with > the built-in types. When I create a string like so: > > x = 'myvalue' > > my understanding is that this is equivalent to: > > x =

[Tutor] Pyflakes pre-commit hook in subversion

2008-01-08 Thread Mark
http://tarekziade.wordpress.com/2006/11/01/protecting-a-python-svn-code-base-with-the-pre-commit-hook/ Is it possible to check code in python before committing to svn   using pyflakes, pythontidy Pyflakes and Subversion Pyflakes is a nice little utility that checks your Python code for err

Re: [Tutor] Scope and elegance

2008-01-08 Thread Tiger12506
> Thanks Tiger12506! > > This has helped me understand the function(*tuple) syntax, as well as > providing me with a concrete example. > > James Cool. ;-) Here's another, totally unrelated to counters and boards. Kinda the opposite use of the * syntax I used earlier. def printall(*li): for x

[Tutor] subclassing strings

2008-01-08 Thread Eric Abrahamsen
I'm playing around with subclassing the built-in string type, and realizing there's quite a bit I don't know about what's going on with the built-in types. When I create a string like so: x = 'myvalue' my understanding is that this is equivalent to: x = str('myvalue') and that this second f

Re: [Tutor] Spaces and tabs messing up code

2008-01-08 Thread Robert Hicks
[EMAIL PROTECTED] wrote: > my friend uses vim > and i use xemacs > so our shared python code is a mix of tabs and spaces and it is hard for > him to edit it in vim > > any idea on how to make it clean > convert it all to 4 spaces? > > Thanks > :set ts=4 :retab! :h retab ___

Re: [Tutor] Spaces and tabs messing up code

2008-01-08 Thread Reed O'Brien
On Jan 8, 2008, at 7:49 PM, Bill Campbell wrote: > On Tue, Jan 08, 2008, [EMAIL PROTECTED] wrote: >> >> my friend uses vim Small editors for small minds;) >> >> and i use xemacs >> >> so our shared python code is a mix of tabs and spaces and it is >> hard >> for him to edit it in vim >

Re: [Tutor] Spaces and tabs messing up code

2008-01-08 Thread Bill Burns
[EMAIL PROTECTED] wrote: > my friend uses vim > and i use xemacs > so our shared python code is a mix of tabs and spaces and it is hard for > him to edit it in vim > > any idea on how to make it clean > convert it all to 4 spaces? > > Thanks > Take a look at reindent.py. This script lives in

Re: [Tutor] Spaces and tabs messing up code

2008-01-08 Thread Bill Campbell
On Tue, Jan 08, 2008, [EMAIL PROTECTED] wrote: > > my friend uses vim > > and i use xemacs > > so our shared python code is a mix of tabs and spaces and it is hard > for him to edit it in vim > > any idea on how to make it clean > > convert it all to 4 spaces? Do that, and in his ~/.vi

[Tutor] Spaces and tabs messing up code

2008-01-08 Thread mobiledreamers
my friend uses vim and i use xemacs so our shared python code is a mix of tabs and spaces and it is hard for him to edit it in vim any idea on how to make it clean convert it all to 4 spaces? Thanks ___ Tutor maillist - Tutor@python.org http://mail.p

Re: [Tutor] Error checking and such in a console "guess my number" game

2008-01-08 Thread Alan Gauld
Hi Brett, If this is really just your second program then I think you are being a bit too ambitious. I'd try simplifying it a bit first, get it to work and then add the extra features - like all of the error checks etc. As it stands there are a few basic errors to be fixed. > #main body > guessed