[Tutor] GUI

2015-02-01 Thread D.Edmons
Hi, Background: I've compiled both python2 and python3 and am starting to learn them well enough to do a GUI application that requires UTF-8. I've done quite a bit of maintenance programming (fixing bugs, minor updates, etc) but the only major application I've written was a disk driver for RT

Re: [Tutor] Fwd: Re: Lost message re serial comms

2015-02-01 Thread Alan Gauld
On 01/02/15 14:28, Alan Gauld wrote: So, in Python I found pyserial and wish to use it to send binary to controlled devices (in this case to a Modbus protocol solar charge controller (TriStar TS-60). In C++ I would setup ‘structs’ or class attributes to hold the byte oriented commands and contr

Re: [Tutor] Fwd: Re: Lost message re serial comms

2015-02-01 Thread Mark Lawrence
On 01/02/2015 14:28, Alan Gauld wrote: This was the problematic serial question. *From:*Doug Basberg [mailto:dbasb...@comcast.net] *Sent:* Friday, January 30, 2015 5:29 PM *To:* 'tu...@python.org' *Subject:* doing rs232 serial with binary data ?? with pyserial?? Hello group; I am new to python

Re: [Tutor] first post

2015-02-01 Thread Steven D'Aprano
Hi, and welcome! My answers are below, interleaved between your comments. On Sun, Feb 01, 2015 at 05:39:17PM +0530, sathya kumar Prasanna wrote: > Hi guys, > > I am completely new to programming and have never had the opportunity to do > attempt coding before. However I have started now and am f

[Tutor] Fwd: Re: Lost message re serial comms

2015-02-01 Thread Alan Gauld
This was the problematic serial question. *From:*Doug Basberg [mailto:dbasb...@comcast.net] *Sent:* Friday, January 30, 2015 5:29 PM *To:* 'tu...@python.org' *Subject:* doing rs232 serial with binary data ?? with pyserial?? Hello group; I am new to python and worked mostly in C & C++ (and assem

Re: [Tutor] first post

2015-02-01 Thread Mark Lawrence
On 01/02/2015 12:09, sathya kumar Prasanna wrote: Hi guys, I am completely new to programming and have never had the opportunity to do attempt coding before. However I have started now and am facing my first problem. The code is as shown, I need to *fill in the blanks* such that when the code is

Re: [Tutor] first post

2015-02-01 Thread Dave Angel
On 02/01/2015 07:09 AM, sathya kumar Prasanna wrote: Hi guys, I am completely new to programming Welcome to the Python tutor forum. Thanks for posting in text format, but you forgot to describe your Python version and operating system. and have never had the opportunity to do attempt codi

Re: [Tutor] decision loops

2015-02-01 Thread Alan Gauld
On 01/02/15 01:54, Daniel M wrote: I can’t figure out how to make the script switch between the two. What I would like it to do is let the user go back to the “What do you wish to convert?” part when a character is entered instead of a number for “temperature?”. I tried using That's quite a co

[Tutor] first post

2015-02-01 Thread sathya kumar Prasanna
Hi guys, I am completely new to programming and have never had the opportunity to do attempt coding before. However I have started now and am facing my first problem. The code is as shown, I need to *fill in the blanks* such that when the code is run it gives the answer as "True". #Please help.

Re: [Tutor] decision loops

2015-02-01 Thread Steven D'Aprano
Hello Daniel, and welcome! On Sat, Jan 31, 2015 at 08:54:48PM -0500, Daniel M wrote: > Hello. I'm a complete beginner and I’m trying to write a very basic script > to convert temperatures, just for some practice. I have that part down, but > I can’t figure out how to make the script switch betwe

[Tutor] decision loops

2015-02-01 Thread Daniel M
Hello. I'm a complete beginner and I’m trying to write a very basic script to convert temperatures, just for some practice. I have that part down, but I can’t figure out how to make the script switch between the two. What I would like it to do is let the user go back to the “What do you wish to con