[Tutor] convert an integer number to string.

2017-02-20 Thread Juan Pablo Valladares
hi friend. i send you this email for say you you have a great project with the python correctos, i dont know if you can help me with one code i try to make functionality but not work i wish can you help me, thank you and than you again, to following the line with the error: for i in range (10

Re: [Tutor] convert an integer number to string.

2017-02-20 Thread Steven D'Aprano
On Sun, Feb 19, 2017 at 11:05:35PM -0300, Juan Pablo Valladares wrote: > hi friend. > > i send you this email for say you you have a great project with the python > correctos, i dont know if you can help me with one code i try to make > functionality but not work i wish can you help me, thank y

Re: [Tutor] convert an integer number to string.

2017-02-20 Thread Alan Gauld via Tutor
On 20/02/17 09:36, Steven D'Aprano wrote: > Comma after "button" is not needed. > > cmds.button(label ="button" + srt(i+1)) > > may be better. and cmds.button(label ="button" + str(i+1)) better still :-) -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http

Re: [Tutor] Creating tables in Tkinter

2017-02-20 Thread Alan Gauld via Tutor
On 19/02/17 16:18, Pooja Bhalode wrote: > Hi, > > I am trying to create a simple table. But I was wondering how do I get the > title of the table to span over multiple columns in the first row. > Code: > > from Tkinter import * > > root = Tk() > root.geometry("700x500") > Label(root, text = "Tab

Re: [Tutor] Resources/Books for teaching OOP in Python and Tkinter

2017-02-20 Thread Alan Gauld via Tutor
On 19/02/17 16:34, Marie Shaw via Tutor wrote: > I am a teacher of 16-18 year olds. > I now need to teach them OOP using Python, > and GUI programming using Python. Those are two different topics, although most GUIs are easier if used with OOP. However, most tutorials (including mine) teach th

Re: [Tutor] Resources/Books for teaching OOP in Python and Tkinter

2017-02-20 Thread Tim Golden
On 19/02/2017 16:34, Marie Shaw via Tutor wrote: I am a teacher of 16-18 year olds. Since September, my classes have been learning to program in Python, using all of the basics in console mode. I now need to teach them OOP using Python, and GUI programming using Python. Please could someone one p

Re: [Tutor] Resources/Books for teaching OOP in Python and Tkinter

2017-02-20 Thread boB Stepp
On Sun, Feb 19, 2017 at 10:34 AM, Marie Shaw via Tutor wrote: > I am a teacher of 16-18 year olds. Since September, my classes have been > learning to program in Python, using all of the basics in console mode. > I now need to teach them OOP using Python, and GUI programming using Python. > Pleas

Re: [Tutor] Matplotlib in Tkinter

2017-02-20 Thread Pooja Bhalode
Hi, Another issue, in this that is happening which is far more important from the perspective that I am looking at, is that when I click the button twice, two graphs get created one below the other. I tried adding a delete("all") statement as shown below. Code: def Submitplot(): print "Cre

[Tutor] Wedscraping Yahoo API

2017-02-20 Thread Joe via Tutor
Hi, I keep getting the following error as I am new to programming and I am following a tutorial and I am using Python 3.6. Can you please point me in the right direction as to what I am doing wrong. This is code I am running import datetime as dtimport matplotlib.pyplot as pltfrom matplotlib impo

Re: [Tutor] Matplotlib in Tkinter

2017-02-20 Thread Alan Gauld via Tutor
On 20/02/17 14:54, Pooja Bhalode wrote: > Another issue, in this that is happening which is far more important from > the perspective that I am looking at, is that when I click the button > twice, two graphs get created one below the other. > > I tried adding a delete("all") statement as shown b

Re: [Tutor] Wedscraping Yahoo API

2017-02-20 Thread Alan Gauld via Tutor
Please post in plain text. Formatting is very important in Python and RTF or HTML tend to get scrambled in transit making your code and error hard to read. Thanks Alan G. On 20/02/17 14:32, Joe via Tutor wrote: > Hi, > I keep getting the following error as I am new to programming and I am > fol

Re: [Tutor] Wedscraping Yahoo API

2017-02-20 Thread Danny Yoo
Hi Joe, On Mon, Feb 20, 2017 at 6:32 AM, Joe via Tutor wrote: > Hi, > I keep getting the following error as I am new to programming and I am > following a tutorial and I am using Python 3.6. Can you please point me in > the right direction as to what I am doing wrong. You have made an assump

Re: [Tutor] Please explain part of this code

2017-02-20 Thread Jerry Hill
On Wed, Feb 15, 2017 at 5:37 PM, Jim wrote: > I don't recall ever seeing this before. What is this technique called? I've heard picking which function to call sometimes called "dispatching", and picking which function to call based on functions held in a dictionary called "dictionary dispatch",