Screen recorder windows 11 Python Visual Studio Code

  Рет қаралды 1,149

Salow Studios

Salow Studios

Күн бұрын

Пікірлер: 6
@SalowStudios
@SalowStudios Жыл бұрын
from cgitb import text from tkinter import * import os from screen_recorder_sdk import screen_recorder def start_recording(): screen_recorder.enable_dev_log() params = screen_recorder.RecorderParams() screen_recorder.init_resources(params) screen_recorder.start_video_recording(os.path.join("video.mp4"),30,8000000,True) record_btn["state"] = "disabled" stop_btn["state"] = "normal" def stop_recording(): screen_recorder.stop_video_recording() screen_recorder.free_resources() record_btn["state"] = "normal" stop_btn["state"] = "disabled" def open_folder(): path = os.path.realpath(os.getcwd()) os.startfile(path) main = Tk() main.title("Screen Recorder Application") app_label = Label(main,text="Screen Recorder Application", font=("arial",26,"bold"),padx=16,pady=16) app_label.grid(columnspan=3) photo = PhotoImage(file=os.path.join("record.png")) photo_image = photo.subsample(8,8) record_btn = Button(main,image=photo_image,command=start_recording) record_btn.grid(row=1,column=0,pady=16) photo = PhotoImage(file=os.path.join("stop-button.png")) photo_image_stop = photo.subsample(8,8) stop_btn = Button(main,image=photo_image_stop,command=stop_recording) stop_btn.grid(row=1,column=1,pady=16) photo = PhotoImage(file=os.path.join("folder.png")) photo_image_folder = photo.subsample(8,8) folder_btn = Button(main,image=photo_image_folder,command=open_folder) folder_btn.grid(row=1,column=2,pady=16) stop_btn["state"] = "disabled" main.mainloop()
@EmSec
@EmSec 2 жыл бұрын
great
@SalowStudios
@SalowStudios 2 жыл бұрын
Thank you!
@valeriodapit5362
@valeriodapit5362 Жыл бұрын
Can you write the code in chat?
@SalowStudios
@SalowStudios Жыл бұрын
Sure, I have pinned it in the first comment.
@valeriodapit5362
@valeriodapit5362 Жыл бұрын
@@SalowStudios thanks
How to Set up VS Code for Data Science & AI
22:53
Dave Ebbelaar
Рет қаралды 321 М.
MAGIC TIME ​⁠@Whoispelagheya
00:28
MasomkaMagic
Рет қаралды 36 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 112 МЛН
Это было очень близко...
00:10
Аришнев
Рет қаралды 7 МЛН
Apple, Stop Putting Things On the Bottom Please
9:16
TechLinked
Рет қаралды 530 М.
How to create coding tutorials [or at least how I make them]
11:57
How To Build Feature Flags Like A Senior Dev In 20 Minutes
20:33
Web Dev Simplified
Рет қаралды 63 М.
OpenTelemetry Course - Understand Software Performance
1:08:48
freeCodeCamp.org
Рет қаралды 251 М.
FastAPI Course for Beginners
1:04:33
freeCodeCamp.org
Рет қаралды 339 М.
Inspect Variables Like a Pro in Visual Studio Debugger
14:13
Microsoft Visual Studio
Рет қаралды 16 М.
How to Build a Simple Calculator in Python - Step by Step 1
15:37
Kindson The Tech Pro
Рет қаралды 384 М.
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 903 М.
MAGIC TIME ​⁠@Whoispelagheya
00:28
MasomkaMagic
Рет қаралды 36 МЛН