How to print variable "filepath" outside a function?
@sportiano33482 жыл бұрын
but i want create text editor and i want to from the user open file.txt to show on text editor ? any way to this
@KhoaNguyen-bk2kv3 жыл бұрын
"hey you yeah i'm talking to you". A useful video, thanks bro.
@EltonSenne3 жыл бұрын
Simple and fast, exact what I need!
@yosefgreen41872 жыл бұрын
what I like most is that you put the snippet code just in the description, thanks! // a better easy solution to open file from dialog and close it after choosing the file: from tkinter import * from tkinter.filedialog import askopenfilename root = Tk() root.withdraw() file_path = askopenfilename() root.destroy()
@nishadshivprakash3 жыл бұрын
Awesome ◉‿◉. Explain good to understand. And thanks for sharing code in description. As I am new, this video is very helpful for me.
@kingshahzad78Ай бұрын
I said fantastic before I see you video Sir! Because I know your teachings❤❤❤❤
@amirekhalili Жыл бұрын
Thanks for simple explanation
@digitalmachine01017 ай бұрын
Good information
@shahabkhokhar40392 жыл бұрын
thank you so much! this is exactly what I needed! subscribed
@vadzimfiadotsyeu29673 жыл бұрын
If you have errors about bad file type - use the following construction: filetypes=[("Text files", "*.txt"), ("Rulename", "file_extension")]
@Data_Falcon5 ай бұрын
BRO YOUR VIDEOS IS SO USEFUL
@martinrosschou2 ай бұрын
I'm about 2 hours in to my Python learning. I removed all the button stuff, and just did openFile() instead.
@martin-xq7te2 жыл бұрын
Great short to the point tutorial. Thank you
@ArmandoEnriqueUrrutiaBlanco3 ай бұрын
hi i from of venezuela, nice video
@paraglide013 жыл бұрын
Thanks man, do know if a filepicker is in python?
@piotrkopcewicz5227 Жыл бұрын
Great tutorial. Love it !!:)
@anaschafik6109 Жыл бұрын
this tutorial helped me , Thank you
@peromiracomodudan...68762 жыл бұрын
Nice done
@AniGuy-sm7iy2 жыл бұрын
hey bro, why didn't you type the "master" when making the open button ?
@tanphatnguyen4873 Жыл бұрын
I got it. Thank you so much !
@seifelshlkany50322 жыл бұрын
Thank you very much! you are amazing
@exploretheuniverse16866 ай бұрын
thank you .....keep it up
@KumarAnalytic2 жыл бұрын
Great Video
@KimPrajapati-f6d Жыл бұрын
Hello Sir, How to make a copy paste file when i make file name textbox then search file in network drive path and paste user destination path to set how to do this ?
@gwyne4192 Жыл бұрын
Is it possible to open multiple files and return multiple directories?
@JimmyZyzz3 жыл бұрын
Excelente vídeo! Me sirvió de mucho. Saludos
@davutselamiozkahraman8200 Жыл бұрын
Very good video
@davidrose19992 жыл бұрын
Cool Video Cheers
@deepdaddy12084 жыл бұрын
great vid bro, im not a bot, just clarifying
@BroCodez4 жыл бұрын
that's what a bot would say lol
@Amir_Plays_non_stop3 жыл бұрын
@@BroCodez 🤣🤣🤣🤣🤣
@tusharbhatriya37003 жыл бұрын
Bro if I want to show that txt or any file inside gui then what I can write?
@naturesounds14273 жыл бұрын
How did you add the open menu with tkinter sign on your pycharm menu am confused, plz help
@chetanpatteparapu76003 жыл бұрын
Thank you, this is helpful.
@minhct25112 жыл бұрын
Can you pls show me what I have to do if I want to show the text in the black window when I opened file
@Artzaint2 жыл бұрын
Awesome video, but what if i want to print it on a Textbox?
@lovebaking2503 Жыл бұрын
thanks for sharing the code
@ГрГафф3 жыл бұрын
Как же прекрасно, что здесь есть субтитры на русском. Спасибо огромное!
@vladglassofficial3 жыл бұрын
Как мне получить доступ к переменной filepath, не объявляя её глобальной, и не вызывая функцию
@ГрГафф3 жыл бұрын
@@vladglassofficial По сути в питоне переменные это ссылки. И если создать переменную в функции, и с тем же названием вне функции. Это будут разные переменные, отвечающие за разные участки памяти (но на вид тебе будут казаться одинаковыми). Если тебе нужно чтото делать с переменной после исполнения функции, то return (возврати то что тебе нужно). Если тебе вообще не хочется использовать функцию, то создай переменную в основном коде. Но я не совсем понимаю вопрос, т.к. не знаю зачем тебе это нужно.
@EissaAlahdul2 жыл бұрын
شكرا
@mohamedtaki87483 жыл бұрын
Thank you very much
@personanongrata2339 Жыл бұрын
thank you so much
@sonalivishwakarma93512 жыл бұрын
Thank you 🙂
@dwithidaya41683 жыл бұрын
Sir, How can I open a excel sheet within the created gui window
@imamsantoso79944 ай бұрын
Thank you
@bjh58783 жыл бұрын
Thank you !!
@wakkendul14343 жыл бұрын
Bro how I want to write when I only need print file name and not the file path.. can u help me please..
@KenDedes943 жыл бұрын
Can Excel files works on Tkinter?
@riyapalkar11783 жыл бұрын
How to add this open button to submenu and open it through submenu . Plzs help 🙏
@beingzero75412 жыл бұрын
Wow!!!!
@rolfjohansen5376 Жыл бұрын
RuntimeError: main thread is not in main loop
@mohitjain18042 жыл бұрын
How we can save the image on click
@منوعاتمنوعات-ح1غ Жыл бұрын
🥰🥰🥰🥰🥰🥰
@KumarAnalytic2 жыл бұрын
I subscribed you now
@joelkafesu67573 жыл бұрын
how can i put a button on this GUI that run a .py script
@akashaabeysundara84546 ай бұрын
thanks bro
@hydarhydar233817 күн бұрын
I like the bro code. ❤
@maxsuspochtam14898 ай бұрын
thank u
@loiczeq55512 жыл бұрын
thanks :)
@abdoularbi57183 жыл бұрын
thank you bro
@umartahir20433 жыл бұрын
Great video!!! What if I want to upload it to SQLite
@KEVINSURIEL7 ай бұрын
How about multi files
@philtoa3343 жыл бұрын
My name is Pizza i like Bro. : )
@jeremy_ching2 жыл бұрын
bu'on bu'on
@jhassee Жыл бұрын
loveIT
@AniruddhaGA3 жыл бұрын
bad file type "*.txt", should be "typeName {extension ?extensions ...?} ?{macType ?macTypes ...?}?"
@hasansolak233 жыл бұрын
You gotta add those nuclear launch codes to the description too...
@bigdeallo Жыл бұрын
If you don't select a file and close the window. You get a FileNotFoundError