For anyone wondering if you can hide the window, yes, you can, just add this in the first line of the function screen.withdraw() screen.update() time.sleep(1) (Don't forget to import time)
@ammarAnas0
2 жыл бұрын
Not working
@diegocabreracarrizo
2 жыл бұрын
can you clarify better it is not working, sorry
@MEATHEADBooYA
Жыл бұрын
@@diegocabreracarrizo So instead of screen.widthdraw it should be root.widthdraw Like this def takeScreenshot(): #tkinter hide window root.withdraw() #set window hidden time time.sleep(3) #take screenshot myScreenshot = pyautogui.screenshot() save_path = asksaveasfilename() myScreenshot.save(save_path +'_screenshot.png')
@mr.creativethinker1023
3 жыл бұрын
Thanks bro ur videos r very useful
@s.devadathan4476
3 жыл бұрын
Thanks Evan for your videos.. I liked all your videos that I watched even before watching them because I know that all your videos are good
@CodingWithEvan
3 жыл бұрын
Thank you ❤️
@zeshn100
3 жыл бұрын
Can you modify the tool which only takes the screenshot of background without capturing the window of screenshot tool.
@nexkennyy1398
3 жыл бұрын
when i did that it didn't work but your tutorials are awesome
@MykeMarvelous
3 жыл бұрын
Good class video
@Manojkumar-gr1dn
4 жыл бұрын
Nice
@dithopulungan2687
3 жыл бұрын
hi, any idea what to change so that I can screen capture only for a specific window? not the entire screen.
@vishnnuvijay9096
3 жыл бұрын
You can crop the screenshot
@kumar_Vishal
2 жыл бұрын
Brother did you get something
@istiakahammad7074
4 жыл бұрын
Please make more python tkinter project....
@Kapildevpandey
2 жыл бұрын
am getting this error what to do Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\kapil\AppData\Local\Programs\Python\Python39\lib\tkinter\__init__.py", line 1892, in __call__ return self.func(*args) File "E: ew python project\ScrCptr.py", line 11, in takescreenshot myScreenshot.save(save_path+"_Screenshot.png") TypeError: unsupported operand type(s) for +: '_io.TextIOWrapper' and 'str'
@muhammedbasheerkk8871
3 жыл бұрын
Bro, please create a video "How to create a screen recorder in python"
@CodingWithEvan
3 жыл бұрын
sure
@muhammedbasheerkk8871
3 жыл бұрын
@@CodingWithEvan thanks you ❤
@_kaustubh_06
3 жыл бұрын
you produce nice sound from keyboard by typing.
@FuzzyImages
2 жыл бұрын
For some reason I'm getting a blank box with no button. and changing the dimensions for the box seems to have no effect either, has tkinter changed or something?
@duarteandre_
3 жыл бұрын
hey evan, how can i make it take a picture of the screen that the gui is on, because i have 2 monitor and it only takes the screenshot of my main monitor.
@CL-it3zy
2 жыл бұрын
pls help stuck here
@rafialana6424
2 жыл бұрын
what key wen he say "import all" at 1:00
@emredemiriz7303
2 жыл бұрын
Hey, Is it possible to take screenshot of a directx game because libs like pyautogui and pywin32 cannot do this.
@sajidahmed6776
3 жыл бұрын
Hey i tried this code but I'm getting output as "Process finished with exit code 0"....help me
@piyushbajaj739
3 жыл бұрын
In which ide did you ran this code??
@zeetips
2 жыл бұрын
भाई इस कोडिंग को DESCRIPTION में डाल दे
@memabe7629
3 жыл бұрын
Can u give me some other ideas like these other than the ones in ur channel please !
@Rkreddy123
2 жыл бұрын
Module string has no attribute ascii letters
@friendskochi6761
2 жыл бұрын
Why do I get this error line 477, in _screenshot_osx im = Image.open(tmpFilename) NameError: name 'Image' is not defined Exception in Tkinter callback Traceback (most recent call last):
@friendskochi6761
2 жыл бұрын
nevermind I got it
@diegocabreracarrizo
2 жыл бұрын
How can I do to share it to another one so they can use it? Thanks
@PathakAcademy
4 жыл бұрын
How to hide take screenshot box ??
@CodingWithEvan
4 жыл бұрын
add these lines before imagegrab root.withdraw() root.update()
@sudhanshushekharmishra2295
3 жыл бұрын
@@CodingWithEvan I am not able to hide that box from the screenshot pic
@diegocabreracarrizo
2 жыл бұрын
@@CodingWithEvan can you exactly say where I should include these lines thanks
@dekmallari5760
2 жыл бұрын
Is there a way to direct the file location instead of asking the user?
@suretmeyenateistoc4252
2 жыл бұрын
just add shortcut you don't need gui for this
@waze1598
3 жыл бұрын
wondershare filmora?
@CodingWithEvan
3 жыл бұрын
Yes
@37janetdevaraj4
3 жыл бұрын
ImportError: No module named 'pyautogui' Getting this error..please help
@CodingWithEvan
3 жыл бұрын
use this command to install "pip install PyAutoGUI"
@duarteandre_
3 жыл бұрын
@@CodingWithEvan it still doesn't work i tried it with requests and other modules and it's annoying me because there are a lot of projects that i can't create because it says no module named '...' Edit: I was using vsc and i changed to pycharm and everything started working
@ghzich017
2 жыл бұрын
@@duarteandre_ For future reader, it is recommended to install the module from your terminal using pip (or sometimes pip.exe) then write down the module name, e.g: pip install pyautogui or pip.exe install pyautogui, then restart your ide,text editor.
Пікірлер: 50