On Sat, Apr 08, 2017 at 10:00:21PM -0500, boB Stepp wrote:
> After reading some discussion on the Python main list about the enum
> module and some suggested changes, I thought I would read the docs on
> it at
> https://docs.python.org/3/library/enum.html?highlight=enum#module-enum
[...]
> And I am
After reading some discussion on the Python main list about the enum
module and some suggested changes, I thought I would read the docs on
it at
https://docs.python.org/3/library/enum.html?highlight=enum#module-enum
Most of the mechanics of using it, Enum in particular, seem
understandable to me,
On 2017-04-08 05:49, Rafael Knuth wrote:
Dear Sama,
thank you so much for your explanation and sorry to bother you on the
same subject again.
I learn the most by taking code apart line by line, putting it
together, taking apart again, modifying it slightly ... which is
exactly what I did with yo
On 08/04/17 13:49, Rafael Knuth wrote:
>> b = "3"+b[2:] #Removing the decimal point so that there are digits only in
>
> my_number = 3.14159
Here you assign a floating point number to mmy_number but
the code Sama wrote was for working with strings read
from a text file.
You would need to conve
Dear Sama,
thank you so much for your explanation and sorry to bother you on the
same subject again.
I learn the most by taking code apart line by line, putting it
together, taking apart again, modifying it slightly ... which is
exactly what I did with your code.
On Tue, Apr 4, 2017 at 3:20 PM, D
Tianjiao Cui wrote:
> Hi, all. I have met a very annoying issue that i messed up with IDlL
> configuration. I changed "run" key in settings but i found it does not
> work and then i tried to reset it to default but i failed. Pls help me get
> rid of this problem because it has been bothering me fo
On 07/04/17 20:21, Phil wrote:
> After a bit more thought I now realise that I just
> need to use self to reference e[][] in my check function.
You need to use self any time you access any member of your
class. So in your case:
class TestGUI:
def __init__(self, master):
self.master
Phil wrote:
> On Sat, 08 Apr 2017 09:12:17 +0200
> Peter Otten <__pete...@web.de> wrote:
>
> Thank you yet again Peter.
>
> I realised what the answer is after taking a break for a couple of hours,
> however, I didn't know about:
>
>> ...
>> self.check_button = Button(
>>
Phil wrote:
> On Sat, 8 Apr 2017 02:00:38 +1000
>
> This is one of those times where I wish I could delete a sent message.
>
> After a bit more thought I now realise that I just need to use self to
> reference e[][] in my check function.
Relax ;) We all had to go through a learning process.
On Sat, 08 Apr 2017 09:12:17 +0200
Peter Otten <__pete...@web.de> wrote:
Thank you yet again Peter.
I realised what the answer is after taking a break for a couple of hours,
however, I didn't know about:
> ...
> self.check_button = Button(
> master,
> tex
On Sat, 8 Apr 2017 02:00:38 +1000
This is one of those times where I wish I could delete a sent message.
After a bit more thought I now realise that I just need to use self to
reference e[][] in my check function.
--
Regards,
Phil
___
Tutor maillist
On 07/04/17 17:00, Phil wrote:
> ...I'm now having a problem knowing when to use the "self" reference.
self is needed every time you use an instance attribute or method.
It is equivalent to 'this' in C++(or Java), but in Python it is
never implicit you always have to explicitly specify self when
Phil wrote:
> I've progressed a little further but I'm now having a problem knowing when
> to use the "self" reference. In the following code, the function "ckeck"
> is called without the need to press the "check" button. This didn't occur
> before I sprinkled "selfs" into the code and added "arra
13 matches
Mail list logo