Go to advanced search

by joseplaselva
Tue Sep 17, 2019 4:11 pm
Forum: General discussion
Topic: New Raspbian Buster and Thonny idle, "hate at first sight"
Replies: 15
Views: 431

Re: New Raspbian Buster and Thonny idle, "hate at first sight"

Sorry I forget to ask why in the new Raspian Buster downloaded has the Thonny idle that just run in Python 3 , when this new raspian runs on 2,7 version :shock: :shock: :shock:

Code: Select all

[email protected]:~ $ python --version
Python 2.7.16
by joseplaselva
Tue Sep 17, 2019 4:00 pm
Forum: General discussion
Topic: New Raspbian Buster and Thonny idle, "hate at first sight"
Replies: 15
Views: 431

Re: New Raspbian Buster and Thonny idle, "hate at first sight"

Many thanks to all for help me to " see the light" :-) . I think I must start to migrate all my scripts to Python 3.
Have a nice evening all of you!!
by joseplaselva
Tue Sep 17, 2019 2:16 pm
Forum: General discussion
Topic: New Raspbian Buster and Thonny idle, "hate at first sight"
Replies: 15
Views: 431

Re: New Raspbian Buster and Thonny idle, "hate at first sight"

I use this in my script : from Tkinter import * from PIL import Image, ImageTk and in Thonny idle gives this error : Traceback (most recent call last): File "/home/pi/TK-snapshot.py", line 5, in <module> from Tkinter import * File "/usr/lib/python3/dist-packages/thonny/backend.py", line 305, in _cus...
by joseplaselva
Tue Sep 17, 2019 1:06 pm
Forum: General discussion
Topic: New Raspbian Buster and Thonny idle, "hate at first sight"
Replies: 15
Views: 431

Re: New Raspbian Buster and Thonny idle, "hate at first sight"

Thanks for give me back the Phyton idle !!!
Thonny's layout looks fine, but why doesn't work with Tkinter GUI ???
by joseplaselva
Tue Sep 17, 2019 11:20 am
Forum: General discussion
Topic: New Raspbian Buster and Thonny idle, "hate at first sight"
Replies: 15
Views: 431

New Raspbian Buster and Thonny idle, "hate at first sight"

I was so excited with the new Pi4 that I bought one to test, and what a great dissapoint, my beloved Python idle has been eliminated and now I can't run my scripts with tkinter in this Thonny idle, why this change, the new with the worst ... I hate. I am the only one suffering from this. Help my fri...
by joseplaselva
Sun May 19, 2019 5:30 pm
Forum: Python
Topic: Question about Tkinter text widged in scrolledtext
Replies: 6
Views: 318

Re: Question about Tkinter text widged in scrolledtext

Thanks a lot , now run perfectly.
Have a nice sunday evening... and thanks again for your kind help
Cheers
by joseplaselva
Sun May 19, 2019 4:23 pm
Forum: Python
Topic: Question about Tkinter text widged in scrolledtext
Replies: 6
Views: 318

Re: Question about Tkinter text widged in scrolledtext

and appears in the widget as folow : 19-05-19 18:20:45 =Check: Succeed mailed 19-05-19 18:20:39 =Check: Camera:19-May-19_(182036) 19-05-19 18:20:36 =Check: Down 1.35 Mbit | Up:0.75 Mbit 19-05-19 18:20:00 =Check: IP: 87.125.68.81 19-05-19 18:13:02 Starting survey every 5 minutes... 19-05-19 18:13:02 ...
by joseplaselva
Sun May 19, 2019 4:20 pm
Forum: Python
Topic: Question about Tkinter text widged in scrolledtext
Replies: 6
Views: 318

Re: Question about Tkinter text widged in scrolledtext

Hi , thanks for fast reply. The text is writing by scrip as folow : def write_line(self): global display_event timenu = str(time.strftime("%y-%m-%d %H:%M:%S")) texte = timenu + " " + display_event + " \n" self.textEvents.insert("1.0", texte) self.textEvents.update_idletasks()
by joseplaselva
Sun May 19, 2019 1:42 pm
Forum: Python
Topic: Question about Tkinter text widged in scrolledtext
Replies: 6
Views: 318

Question about Tkinter text widged in scrolledtext

I would like to know if it is a way of dysplay the lines from top to botton in a scrolledtext widget. Now when I write a line appears allways in the top when the first one appears in the botton. When I write on a simple text widget appears in the other way, the last line is allways at the botton... ...
by joseplaselva
Wed May 01, 2019 4:32 pm
Forum: Python
Topic: Getting crazy with tkinter text widget
Replies: 2
Views: 227

Re: Getting crazy with tkinter text widget

Thanks a lot , now is running perfectly .
Cheers
by joseplaselva
Tue Apr 30, 2019 3:57 pm
Forum: Python
Topic: Getting crazy with tkinter text widget
Replies: 2
Views: 227

Getting crazy with tkinter text widget

I made a tkinter script with some text widgets where display some data during a initial procedures... showing day, hour, temperatures ... etc , but the first text widget with the day doesn't show nothing until all the others has been updates... and I can't undrestant this strange behaviour, can some...
by joseplaselva
Mon Apr 08, 2019 6:23 pm
Forum: Python
Topic: Help reading txt file lines
Replies: 3
Views: 516

Re: Help reading txt file lines

Thank you very much for your answers , it helps me a lot.
Best redgards
by joseplaselva
Mon Apr 08, 2019 3:59 pm
Forum: Python
Topic: Help reading txt file lines
Replies: 3
Views: 516

Help reading txt file lines

I have a txt file where I save sonfigurations , it has 2 lines with just a number , when I read the lines and assign the content to a variable I get error when I try to compare in a If sentence , even if I read a number seems to be more than one ( when I convert to a string and count the characters ...
by joseplaselva
Mon Jan 07, 2019 3:59 pm
Forum: Python
Topic: PiCamera streaming on Tkinter label -Help
Replies: 28
Views: 2013

Re: PiCamera streaming on Tkinter label -Help

Here comes the final script if it can be useful for some one . The scripts take a full resolution jpg image from the PiCamera ( video streaming just frezze for 4 seconds). Then visualize the picture in a little window, and you can decide if send by mail, delete or save the file . To avoid freezing t...
by joseplaselva
Sun Jan 06, 2019 8:08 am
Forum: Python
Topic: PiCamera streaming on Tkinter label -Help
Replies: 28
Views: 2013

Re: PiCamera streaming on Tkinter label -Help

At the end I got the solution, adding " camera.close" to release the picamera after taken a picture, and "vs.open(0)" to restart the streaming.
by joseplaselva
Sat Jan 05, 2019 5:53 pm
Forum: Python
Topic: PiCamera streaming on Tkinter label -Help
Replies: 28
Views: 2013

Re: PiCamera streaming on Tkinter label -Help

Python 2.7
by joseplaselva
Sat Jan 05, 2019 5:18 pm
Forum: Python
Topic: A picture in a tkinter window
Replies: 6
Views: 780

Re: A picture in a tkinter window

post edited
by joseplaselva
Sat Jan 05, 2019 3:05 pm
Forum: Python
Topic: A picture in a tkinter window
Replies: 6
Views: 780

Re: A picture in a tkinter window

May be this can help you,I use to take snapshots on a remote place and send the image by mail. The script if for Python 2,7 # Created 2018-Juni-12 14:10 # Tkinter issue # Modified i la Selva 18-December-13 11:07 from Tkinter import * from PIL import Image, ImageTk import picamera import time import ...
by joseplaselva
Sat Jan 05, 2019 2:40 pm
Forum: Python
Topic: PiCamera streaming on Tkinter label -Help
Replies: 28
Views: 2013

Re: PiCamera streaming on Tkinter label -Help

I have been changing the script and runs perfectly, but I have a new challenge to resolve , I want to take a snapshot , taking from a frame is not problem, the streaming is allways running, but because the frame resolution is very low I try to use instead the full picamera resolution with picamera.c...
by joseplaselva
Fri Jan 04, 2019 4:45 pm
Forum: Python
Topic: PiCamera streaming on Tkinter label -Help
Replies: 28
Views: 2013

Re: PiCamera streaming on Tkinter label -Help

So easy!!! Thanks a lot.
Have a nice Friday evenning
Cheers
by joseplaselva
Fri Jan 04, 2019 3:42 pm
Forum: Python
Topic: PiCamera streaming on Tkinter label -Help
Replies: 28
Views: 2013

PiCamera streaming on Tkinter label -Help

I have a script that display streaming from a webcam in a tkinter label , I want to do the same but from a PiCamera, but after a lot of googling I did not find any solution to this, I need the streaming on a tkinter label because I need buttons to control actions of my raspberry pi. All the solution...
by joseplaselva
Mon Oct 29, 2018 9:34 pm
Forum: Python
Topic: TKINTER GUI ,Threads and Widgets
Replies: 2
Views: 717

Re: TKINTER GUI ,Threads and Widgets

Great, it runs perfectly, thanks a lot
by joseplaselva
Mon Oct 29, 2018 7:30 pm
Forum: Python
Topic: TKINTER GUI ,Threads and Widgets
Replies: 2
Views: 717

TKINTER GUI ,Threads and Widgets

Hi, I woluld ask the way to update a label widget from a thread . Here send a extract of my script , first without thread. A web cam is streaming to a tk.label , there is a button that power a relay for 10 seconds and a labe that notify that the process is running and after the 10 seconds shows that...
by joseplaselva
Mon Oct 22, 2018 6:50 pm
Forum: Python
Topic: TKINTER GUI and Thread
Replies: 6
Views: 1195

Re: TKINTER GUI and Thread

Thanks again, it runs perfectly, you really save me a lot of time. Thanks. My GUI has several buttons that comand servos , that's why I needed a continuos streaming to check the movements of the servos because I use in a remote place. And I want to see if they work how they must to do. Have a nice e...
by joseplaselva
Mon Oct 22, 2018 6:08 pm
Forum: Python
Topic: TKINTER GUI and Thread
Replies: 6
Views: 1195

Re: TKINTER GUI and Thread

Great, many thanks , now it's running video withouth freezing, so if I understand, because my GUI have several buttons that make differents actions, I must put all of them out of the Main loop before the Class Application ? , one more thing, how to make to show the results of the actions in a label ...

Go to advanced search