Go to advanced search

by RDS
Fri Jul 10, 2020 9:52 pm
Forum: Beginners
Topic: How do I print a Python Program
Replies: 19
Views: 394

Re: How do I print a Python Program

@pcmanbob Thank you for those very detailed instructions. I have carried out all the steps and all the files of the pi are visible on my PC and I can copy them across. However, when I right click on the file, I get a similar screen to that you showed and an option to edit in Notepad but not Notepad+...
by RDS
Fri Jul 10, 2020 1:21 pm
Forum: Beginners
Topic: How do I print a Python Program
Replies: 19
Views: 394

Re: How do I print a Python Program

@pcmanbob
Thank you very much for that. I am out most of the day but I will try that later.
by RDS
Thu Jul 09, 2020 9:43 pm
Forum: Beginners
Topic: How do I print a Python Program
Replies: 19
Views: 394

Re: How do I print a Python Program

@pcmanbob I also use all my pi's headless, in my case using VNC. Could you explain more about winscp please as I have now tried to paste the program listing into LIbreOffice and although it copies across, all the colour highlighting is lost and it the colour that makes the program far more readable....
by RDS
Thu Jul 09, 2020 9:38 pm
Forum: Beginners
Topic: How do I print a Python Program
Replies: 19
Views: 394

Re: How do I print a Python Program

DougieLawson wrote:
Thu Jul 09, 2020 9:29 pm
That sudo command was just to get the cups compatible lpr program installed.
Thanks. I only use it sparingly and only then if advised by someone I trust!
by RDS
Thu Jul 09, 2020 9:27 pm
Forum: Beginners
Topic: How do I print a Python Program
Replies: 19
Views: 394

Re: How do I print a Python Program

@DougieLawson Thank you. That sudo command has worked and now it will print using the Print option in the File Tab. It only printed in Monochrome though and completely ignored the colour which is present in the IDLE program listing. I will try pasting the Program into Libre Office to see if that ret...
by RDS
Thu Jul 09, 2020 9:18 pm
Forum: Beginners
Topic: How do I print a Python Program
Replies: 19
Views: 394

Re: How do I print a Python Program

@Paeryn & DougieLawson Yes, sorry I copied the error incorrectly. Now that you point it out, it is as you have both stated. However, that was an error that the pi displayed when I tried to use the Print option in the IDLE File drop down. @DougieLawson I was not trying to print from the command line ...
by RDS
Thu Jul 09, 2020 7:09 pm
Forum: Beginners
Topic: How do I print a Python Program
Replies: 19
Views: 394

Re: How do I print a Python Program

Thanks, I have previously copied the text and printed using something like MS Word on a Windows PC but it does not retain the colour aspects. I have not tried using Libre Office but if that does retain the colour and indent s that would be a good solution, as I can actually print from Libre Office. ...
by RDS
Thu Jul 09, 2020 6:36 pm
Forum: Beginners
Topic: How do I print a Python Program
Replies: 19
Views: 394

How do I print a Python Program

I am trying unsuccessfully to print out the code of a Python3 program. I have followed the set up instructions for my Printer and I can print out the test page. I can also type some text into Libre Office and print that without problems. However, when I try to print a Python Program (which I think j...
by RDS
Tue Jun 02, 2020 2:53 pm
Forum: Python
Topic: Interference when using inputs at 2 GPIO pins
Replies: 11
Views: 545

Re: Interference when using inputs at 2 GPIO pins

how do i post an image. It is a jpg, is that alright.
by RDS
Mon Jun 01, 2020 8:50 pm
Forum: Python
Topic: Interference when using inputs at 2 GPIO pins
Replies: 11
Views: 545

Re: Interference when using inputs at 2 GPIO pins

@pcmanbob
Thank you. I will draw it out.
by RDS
Mon Jun 01, 2020 3:07 pm
Forum: Python
Topic: Interference when using inputs at 2 GPIO pins
Replies: 11
Views: 545

Re: Interference when using inputs at 2 GPIO pins

Each coil sees a current of about a 200mA pulse for less than half a second about every 4 or 5 seconds.
by RDS
Mon Jun 01, 2020 2:04 pm
Forum: Python
Topic: Interference when using inputs at 2 GPIO pins
Replies: 11
Views: 545

Re: Interference when using inputs at 2 GPIO pins

How close are the 2 coils with the reed switches in, could it be that one active coil is actually causing both reed switches to close. Thank you for your suggestion. The coils were about 75mm apart when I posted the question but after reading your suggestion I have moved them 600mm apart. However, ...
by RDS
Mon Jun 01, 2020 11:03 am
Forum: Python
Topic: Interference when using inputs at 2 GPIO pins
Replies: 11
Views: 545

Re: Interference when using inputs at 2 GPIO pins

pidd wrote:
Mon Jun 01, 2020 10:25 am
Are you using a separate pull-up resistor for each input?
Yes, a separate resistor for each.
by RDS
Sun May 31, 2020 10:41 pm
Forum: Python
Topic: Interference when using inputs at 2 GPIO pins
Replies: 11
Views: 545

Interference when using inputs at 2 GPIO pins

I have 2 separate 12v circuits and I am trying to detect when they are drawing current. The voltage is supplied to each of the circuits separately through a coil wrapped around a Reed Switch. My idea is that when current is drawn through either circuit, it will create a magnetic field and activate t...
by RDS
Wed May 20, 2020 6:40 pm
Forum: Python
Topic: Adding a Delay in a tkinter program
Replies: 10
Views: 453

Re: Adding a Delay in a tkinter program

@Paeryn
Thank you very much.
I was so near - and yet so far!
by RDS
Wed May 20, 2020 4:37 pm
Forum: Python
Topic: Adding a Delay in a tkinter program
Replies: 10
Views: 453

Re: Adding a Delay in a tkinter program

@scotty101 Thank you, The following is my code. (Python3) The Display Colours button is intended to change the discs from red to blue, one at a time at 1 second intervals, so that I start with 5 red discs and end up with 5 blue ones. I have tried both 'sleep' and 'after' but both just wait until the...
by RDS
Wed May 20, 2020 7:55 am
Forum: Python
Topic: Adding a Delay in a tkinter program
Replies: 10
Views: 453

Re: Adding a Delay in a tkinter program

@PiGraham
That sounded interesting until I reached the 'subscription' part.
by RDS
Wed May 20, 2020 7:44 am
Forum: Python
Topic: Adding a Delay in a tkinter program
Replies: 10
Views: 453

Re: Adding a Delay in a tkinter program

@klricks
Thank you. I had already seen that from the Google searches I did but it is for Python 2 and I cannot convert it to Python 3
by RDS
Tue May 19, 2020 10:42 pm
Forum: Python
Topic: Adding a Delay in a tkinter program
Replies: 10
Views: 453

Adding a Delay in a tkinter program

In Python 3, I am trying without success to use the sleep command in a tkinter program. My intention is to draw 5 circles filled in blue, on a blackbackground, with a 1 second delay between each one. I can draw the filled in circles but when I put sleep(1) in between drawing each one, the program ju...
by RDS
Sat May 16, 2020 8:14 am
Forum: Beginners
Topic: Live Camera
Replies: 2
Views: 195

Re: Live Camera

Hi This is my code. It is from a program I obtained on this Forum a couple of years ago. It was originally written in Python 2 but I have converted it to Python 3 and added commands to be able to use the Pan/Tilt Hat to allow movement of the camera. The program was originally written with a Class co...
by RDS
Fri May 15, 2020 12:39 pm
Forum: Beginners
Topic: Live Camera
Replies: 2
Views: 195

Live Camera

I have a Python 3 program running that is able to display a picture in a tkinter window. This works well but it only displays the picture that I have just captured rather than displaying a picture all the time. This 'frozen' picture remains until the next pixture is taken. I am using a Pi Model 3 B+...
by RDS
Mon May 04, 2020 7:33 am
Forum: Beginners
Topic: Simple servo control?
Replies: 10
Views: 303

Re: Simple servo control?

I picked up my knowledge mostly this Forum where there are some very helpful and knowledgeable members or just type 'tkinter Raspberry Pi' or 'VNC raspberry Pi' into Google.
by RDS
Sun May 03, 2020 9:29 pm
Forum: Beginners
Topic: Simple servo control?
Replies: 10
Views: 303

Re: Simple servo control?

I use VNC every day and I am absolutely delighted with it. I use it to access my Pi's from either a Windows 10 Desktop Computer or an Android mobile phone. When accessed from the Desktop, the use is exactly the same as if the Pi was plugged directly into its own Monitor, Keyboard and Mouse. The same...
by RDS
Sat Apr 25, 2020 12:02 pm
Forum: Beginners
Topic: VNC - Transferring a Pi to another user on a different VNC account
Replies: 4
Views: 156

Re: VNC - Transferring a Pi to another user on a different VNC account

Thank you for your reply.
I have now past the first stage and can see the Pi on the new users account but I cannot yet gain access to it remotely due to Password problems.
I think I can change the password using a Sudo command when accessing it directly.

Go to advanced search