[issue14163] tkinter: problems with hello doc example

2012-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Pushed into master. Thanks. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14163] tkinter: problems with hello doc example

2012-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset d8ba959a547b by Andrew Svetlov in branch 'default': Closes issue #14163 - tkinter: problems with hello doc example http://hg.python.org/cpython/rev/d8ba959a547b -- nosy: +python-dev ___ Python tracker <

[issue14163] tkinter: problems with hello doc example

2012-03-14 Thread Roger Serwy
Roger Serwy added the comment: The current tk_hello.py file works under Ubuntu 11.04 with the latest python build from the repository. It looks good to me. -- ___ Python tracker __

[issue14163] tkinter: problems with hello doc example

2012-03-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: What the status of 'hello demo'? If there are no objections I can update the docs. -- nosy: +asvetlov ___ Python tracker ___ _

[issue14163] tkinter: problems with hello doc example

2012-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: G, another but in the original ;-) Thank you! I will incorporate into the doc now. -- Added file: http://bugs.python.org/file24713/tk_hello.py ___ Python tracker _

[issue14163] tkinter: problems with hello doc example

2012-03-02 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file24712/tk_hello.py ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue14163] tkinter: problems with hello doc example

2012-03-02 Thread Roger Serwy
Roger Serwy added the comment: Ah, that's subtle. There's a comma at the end of that ["text"] line which is making the string a one-element tuple. Removing it fixes the issue. -- ___ Python tracker __

[issue14163] tkinter: problems with hello doc example

2012-03-02 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file24693/tk_hello.py ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue14163] tkinter: problems with hello doc example

2012-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Do you know anything about spaces in the button text causing the addition of {bra ces}? I would prefer not to have to use an underscore in Hello_World. I fixed the long line and also updated pack calls pass options by name instead of a dict. -- Added

[issue14163] tkinter: problems with hello doc example

2012-03-02 Thread Roger Serwy
Roger Serwy added the comment: I tried your tk_hello.py code and it works on Python 3. The code for creating the QUIT button exceeds 80 columns. I'd insert a \n after the second argument: self.QUIT = tk.Button(self, text = "QUIT", fg = "red", command =

[issue14163] tkinter: problems with hello doc example

2012-03-02 Thread Roger Serwy
Roger Serwy added the comment: I tried your tk_hello.py code and it works on Python 3. The code for creating the QUIT button exceeds 80 columns. I'd insert a \n after the second argument: self.QUIT = tk.Button(self, text = "QUIT", fg = "red", command =

[issue14163] tkinter: problems with hello doc example

2012-02-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Rick Johnson anwered question 1b on python-list: simply move root.destroy to the button. I make other changes also: use import...as; show that options can be set in constructor call. File uploaded. -- stage: -> patch review Added file: http://bugs.py

[issue14163] tkinter: problems with hello doc example

2012-02-29 Thread Terry J. Reedy
New submission from Terry J. Reedy : After an intro, the tkinter docs start with a traditional 'Hello World'. http://docs.python.org/py3k/library/tkinter.html#a-simple-hello-world-program Problem 1. The example ends with root.destroy John Salerno, today, on python-list thread "Is it necessary t