Re[2]: [OT] master/slave debate in Python
This is right next to the objection of the use male and female to describe the two parts of a connector. I lament that snowflakes and such are trying desperately to enforce their quest for radical egalitarianism and see hidden agendas behind just about everything---except their own, of course. Brian Grawburg Wilson, NC -- https://mail.python.org/mailman/listinfo/python-list
os.system error returns
I have a piece of code written for a Raspberry Pi with no explanation for two of the lines -- and I can't find an explanation I understand. Here are the lines: if os.system('modprobe --first-time -q w1_gpio') ==0 if os.system('modprobe -q w1_gpio') == 256: I know what the 'modprobe...' is, it's the 0 and the 256 I don't get. Where do these numbers come from? I recognize they're some kind of error returns, but don't know what they mean. Thanks, Brian Grawburg -- https://mail.python.org/mailman/listinfo/python-list
Re[2]: Teaching Python
I use Chris Roffey's Coding Club - Python Basics (Level 1) and Coding Club - Python: Next Steps (Level 2) I also use the Turtle material from Python for Kids These are 11+ year old kids in week long, 3 hour/day summer camps on the Raspberry Pi and Python. The Level 2 book is for the 2nd camp (for those who want to go further). Brian Grawburg Wilson, NC -- https://mail.python.org/mailman/listinfo/python-list
Latching variables in function
I've probably used the wrong term - I'm thinking of what I do when writing PLC code - so I can't find how to do this in my reference books. This is part of a project I'm working on with a Raspberry Pi and an MCP23017 port expander. I have a N/O pushbutton that I want to latch a value to a variable when it's been pressed. I have this function that gets called periodically in a 'while True' statement: def button(): pushbutton = 0 button_value = 0 pushbutton=bus.read_byte_data(address,GPIOB) if pushbutton 0: button_value = 1 return button_value I need button_value to become '1' when the button is pressed and to remain '1' until the entire program (only about 25 lines) ends with a sys.exit() What do I use to 'latch' button_value? Brian Grawburg North Carolina -- The truth will set you free . . .but first it will infuriate you. -- https://mail.python.org/mailman/listinfo/python-list
Re[2]: [newbie] advice and comment wanted on first tkinter program
The Raspberry Pi is exactly what got me started with Python. I'm at medium-sized science museum and used the Pi, Python, tkinter to introduce kids to programming Linux this past summer. Jean, feel free to contact me off-line for my experience with all three. Brian Grawburg Wilson, NC -Original Message- From: Oscar Benjamin oscar.j.benja...@gmail.com To: Jean Dupont jeandupont...@gmail.com Cc: Python List python-list@python.org Date: 01/18/14 10:13 AM Subject: Re: [newbie] advice and comment wanted on first tkinter program On 18 January 2014 14:52, Jean Dupont jeandupont...@gmail.com wrote: Thanks Peter and Terry Jan for the useful suggestions. One thing which I find a bit weird: when asking for Python-help concerning raspberry pi code or problems, a lot of people don't seem to be interested in helping out, that's of course their choice, but maybe they don't seem to be aware the raspberry pi is often the motivation for starting to learn to program in Python. And as such such a reaction is a bit disappointing. Hi Jean, What makes you say that? Did you previously ask questions about Rasberry Pi code on this list? If you did I wouldn't have answered those questions because I've never used a Raspberry Pi and know nothing about them (except that they encourage using Python somehow). I think that there's actually a list that is specifically for Raspberry Pi Python questions that might be more helpful although I don't know what it is... Oscar -- https://mail.python.org/mailman/listinfo/python-list -- The truth will set you free . . .but first it will infuriate you. -- https://mail.python.org/mailman/listinfo/python-list