Go to advanced search

by rassberry pi
Fri Jul 10, 2020 6:00 am
Forum: Python
Topic: Video time not accurate
Replies: 2
Views: 134

Re: Video time not accurate

Thank you blimpyway for the help. I was able to figure it out by changing my code to

Code: Select all

if (TotalFrames > int(seconds) * 24):    #24 FPS * total seconds to stop
           break
Kind regards,
rp
by rassberry pi
Thu Jul 09, 2020 5:49 am
Forum: Python
Topic: Video time not accurate
Replies: 2
Views: 134

Video time not accurate

Hi all, I am making a GUI under OpenCV, and I am trying to take videos: a video where I can press start and stop to dictate the duration or a video where I can set up a specific duration ahead of time. However, I realized that the time duration that the actual video takes is less than the one I chos...
by rassberry pi
Thu Jul 09, 2020 5:08 am
Forum: Python
Topic: How sub thread change widget in main thread
Replies: 7
Views: 337

Re: How sub thread change widget in main thread

I figured it out. Thanks guys for the help!

Kind regards,
rp
by rassberry pi
Tue Jul 07, 2020 8:44 pm
Forum: Python
Topic: How sub thread change widget in main thread
Replies: 7
Views: 337

Re: How sub thread change widget in main thread

Hi, I am sorry I did not mention that the under def doit() I am going to take a 5 minute video and save it.

I previously mentioned it on my first code, but did I put it on my second code.

Thank you,
rp
by rassberry pi
Tue Jul 07, 2020 5:30 pm
Forum: Python
Topic: How sub thread change widget in main thread
Replies: 7
Views: 337

Re: How sub thread change widget in main thread

Thanks for your response MrYsLab. I am creating a GUI button under guizero. from guizero import App, ButtonGroup, Box, Text, TextBox, PushButton import cv2 import time as tm from datetime import * import threading app = App(title="Hello World") def doit(): start_video_button.enable() #NOT WORKING I ...
by rassberry pi
Tue Jul 07, 2020 12:01 am
Forum: Python
Topic: How sub thread change widget in main thread
Replies: 7
Views: 337

How sub thread change widget in main thread

Hi all, I want to enable my button after taking a video, but it doesn't work. Please see my code below. def doit(): *here take 5 minutes video and save* start_video_button.enable() #NOT WORKING start_video_button.disable() t = threading.Thread(target=doit) t.start() I appreciate any help I can get. ...
by rassberry pi
Thu Jul 02, 2020 8:30 pm
Forum: Python
Topic: Align Left function not working
Replies: 3
Views: 201

Re: Align Left function not working

Thank you MrYsLab for the help! The grid function definitely helped align everything to the left.

Kind regards,
rp
by rassberry pi
Tue Jun 30, 2020 10:23 pm
Forum: Python
Topic: Align Left function not working
Replies: 3
Views: 201

Re: Align Left function not working

I am going to /bump this topic. Any help is much appreciated!

rp
by rassberry pi
Tue Jun 30, 2020 10:21 pm
Forum: Python
Topic: update_command method for textbox
Replies: 4
Views: 234

Re: update_command method for textbox

Thank you so much Paeryn, that worked for me!

Kindest regards,
rassberry pi
by rassberry pi
Mon Jun 29, 2020 11:33 pm
Forum: Python
Topic: update_command method for textbox
Replies: 4
Views: 234

Re: update_command method for textbox

Thank you for your help ghp, I really appreciate it.

The code doesn't work for me. It prints out update_callback, but does not print out the values after I write something in the text box.

I am using latest Raspbian version (Buster) on Raspberry Pi.
by rassberry pi
Mon Jun 29, 2020 4:33 am
Forum: Python
Topic: update_command method for textbox
Replies: 4
Views: 234

update_command method for textbox

Hi all,

I am using the textbox widget under guizero. When the user changes their value in the textbox, it will trigger the update command, but I do not know how to use it.

Can someone please give me a sample?

Kind regards,
rassberry pi
by rassberry pi
Mon Jun 29, 2020 1:35 am
Forum: Python
Topic: Align Left function not working
Replies: 3
Views: 201

Align Left function not working

Hi all, I am trying to get box 2, box 3, and box 4 to align to the left instead of aligning to the center. I have tried putting align="left" in Box() but it does not work. I have attached my code and an attachment of guizero running the code below. #box 2 box2 = Box(app, border=True) text2 = Text(bo...

Go to advanced search