On Sun, Apr 09, 2017 at 10:21:49AM -0500, boB Stepp wrote:
> A general question about PEPs: Is there generally a PEP preceding the
> addition of any new feature to the core language or the standard
> library? I gather that even an accepted PEP (In this instance PEP
> 0435.) may not reflect the
On Mon, Apr 10, 2017 at 02:10:34PM +, Allan Tanaka via Tutor wrote:
> Hi.
> Is there a way to save module type data into .npy file that can be used
> latter?
What's "module type data"?
What's a .npy file?
To answer your question, literally, the answer is "Yes, of course.
Python can save
On 04/10/2017 01:55 AM, marcus lütolf wrote:
> Dear experts,
> I have written the following code for motion detection with a PIR sensor
> with a function and
> I need to count how many times the funtion is called, but I get a traceback:
>
> #!/usr/bin/python3
> import sys, time
> import RPi.GPIO
Hi.
Is there a way to save module type data into .npy file that can be used latter?
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On Mon, 10 Apr 2017 19:40:01 +0100
Alan Gauld via Tutor wrote:
> You want two parameters
> self becaiuse its a method of a class so must have a self
> event which is the event passsed by the GUI
> So:
>
> def my_method(self, event):
> print("method called with ",event)
>
On 10/04/17 10:18, Phil wrote:
> def my_method(self.event):
> print("method called")
>
> (self.event) is a syntax error and if I leave off "self", this is the result:
You want two parameters
self becaiuse its a method of a class so must have a self
event which is the event passsed by the
On Mon, 10 Apr 2017 09:31:10 +0200
Peter Otten <__pete...@web.de> wrote:
> entry.bind("", bye)
Thank you Peter and Alan,
I had tried key-press but that caused the error message shown bellow which made
me think that I was not on the correct track. So in desperation, after hours of
On 10/04/17 08:55, marcus lütolf wrote:
> Dear experts,
> I have written the following code for motion detection with a PIR sensor
> with a function and
> I need to count how many times the funtion is called, but I get a traceback:
>
> #!/usr/bin/python3
> import sys, time
> import RPi.GPIO as
Dear experts,
I have written the following code for motion detection with a PIR sensor
with a function and
I need to count how many times the funtion is called, but I get a traceback:
#!/usr/bin/python3
import sys, time
import RPi.GPIO as gpio
gpio.setmode(gpio.BOARD)
gpio.setup(23, gpio.IN)
On 10/04/17 05:43, Phil wrote:
> I would like a function to be called when I enter text
> and then tab to the next entry box.
One of the things about Entry boxes is that they are extremely
flexible and have many event types associated with them.
The consequence of this is that you as a
10 matches
Mail list logo