Re: [Tutor] Need all values from while loop - only receiving one

2018-07-02 Thread Alan Gauld via Tutor
On 02/07/18 21:06, Daryl Heppner wrote: > I'm trying to calculate the amount of rent per lease for the life of > the lease, by month. The following code provides the correct results > except for the monthnum and billper. > The while loop (below) returns the first value correctly but stops > w

[Tutor] Need all values from while loop - only receiving one

2018-07-02 Thread Daryl Heppner
Hi folks, I'm trying to calculate the amount of rent per lease for the life of the lease, by month. The following code provides the correct results except for the monthnum and billper. Monthnum is intended to show the month within the lease and the billper should list each date for rent billing.

[Tutor] Pip install and Ipv6

2018-07-02 Thread Luiz Gustavo S. Costa
Hello, Is anyone else here having problems using Pip repository with ipv6? If I try to install something with pip, I get this: (python2) lgcosta:api/ $ pip install falcon Collecting falcon Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by '

Re: [Tutor] why can use a widget assigned to a variable or just use it on it's own?

2018-07-02 Thread Steven D'Aprano
On Mon, Jul 02, 2018 at 11:54:08AM +1000, Chris Roy-Smith wrote: > Hi, > > I'm trying to understand working with objects. > > If I have grasped things correctly a widget is an object. In Python, all values are objects. (That's not the case in all languages.) > So why can I > assign the widge

Re: [Tutor] how to change the command "string" on a tkinter Button?

2018-07-02 Thread Alan Gauld via Tutor
On 01/07/18 23:34, Alan Gauld via Tutor wrote: > Realize that you made a mistake, get the original > version back > > co -l -v1.1 myfile.py Oops, a bit rusty. The command should be: co -l1.1 myfile.py -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazo

Re: [Tutor] why can use a widget assigned to a variable or just use it on it's own?

2018-07-02 Thread Alan Gauld via Tutor
On 02/07/18 02:54, Chris Roy-Smith wrote: > If I have grasped things correctly a widget is an object. Every value in Python is an object. numbers, strings, lists, functions, instances of classes. All are objects. You can see that by using the dir() function on them: >>> dir(5) ['__abs__', '__a

Re: [Tutor] why can use a widget assigned to a variable or just use it on it's own?

2018-07-02 Thread Timo
Op 02-07-18 om 03:54 schreef Chris Roy-Smith: Hi, I'm trying to understand working with objects. If I have grasped things correctly a widget is an object. So why can I assign the widget, or use it stand alone? See sample code below = #!/usr/bin/python3 from tkinter impor

[Tutor] why can use a widget assigned to a variable or just use it on it's own?

2018-07-02 Thread Chris Roy-Smith
Hi, I'm trying to understand working with objects. If I have grasped things correctly a widget is an object. So why can I assign the widget, or use it stand alone? See sample code below = #!/usr/bin/python3 from tkinter import * main=Tk() # as I understand it this will c