Using Other Python Programs In Your Tkinter App - Python Tkinter GUI Tutorial

  Рет қаралды 42,958

Codemy.com

Codemy.com

3 жыл бұрын

In this video I'll show you how to call and use other python programs in your tkinter app.
Maybe there's another program that you want to use the functionality of in your tkinter app...or maybe you just have a very large tkinter app and want to break the code up into other files that you can reference just for readability.
Either way, this little trick will work for you!

Пікірлер: 111
@Codemycom
@Codemycom 3 жыл бұрын
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My KZbin Channel: bit.ly/2UFLKgj bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN ▶️ Get The Code bit.ly/3fLFQ8p
@guilhermefranco2198
@guilhermefranco2198 3 жыл бұрын
Hi John, just want to give you a feedback, I love the style of your Tkinter videos with quick tips. They helped me to develop an app for a construction company in my city. Keep the awesome work, greetings from Brazil!
@Codemycom
@Codemycom 3 жыл бұрын
Awesome! Glad you find hem useful!
@koollucian
@koollucian 3 жыл бұрын
A great video, John. Simple, easy to understand, organized and..above all, delivered with a great deal of pizzazz. Must I add "I learned a lot from your short video?" Saying "you're one hella good teacher says t all. Keep it up!
@Codemycom
@Codemycom 3 жыл бұрын
Thanks! Glad you enjoyed it!
@Zhisaoka
@Zhisaoka 3 жыл бұрын
Oh this is really helpfull I’m just waiting for school to start. You helped me the most on KZbin for programming, it makes me sick that there is a dislike already
@Codemycom
@Codemycom 3 жыл бұрын
Awesome, glad it was helpful!
@HolyG2k6
@HolyG2k6 Жыл бұрын
Thanks thanks thanks for the short but really informative video. It was just what I've been searching for among the documents on the web. Learned something I've been searching for in 8 minuntes.
@Codemycom
@Codemycom Жыл бұрын
Glad you enjoyed it!
@SammarpanDasguptaOfficial
@SammarpanDasguptaOfficial 3 жыл бұрын
Hello, sir....thanks uploading videos day by day....you increase my confidence so much...you just an awesome techer..only for you, I can make my project using Python Tkinter which makes my project very exciting......Thanks for that.....love you from India.
@Codemycom
@Codemycom 3 жыл бұрын
Glad you're enjoying the videos!
@margaretlai1804
@margaretlai1804 3 жыл бұрын
Thank you, John. You are awesome! Have a great weekend. Thumb up.
@Codemycom
@Codemycom 3 жыл бұрын
Thanks, you too!
@kodeypatterson8973
@kodeypatterson8973 3 жыл бұрын
Great video, simple and to the point
@Codemycom
@Codemycom 3 жыл бұрын
Thanks
@mariocanudo7150
@mariocanudo7150 Жыл бұрын
Great stuff as always
@Codemycom
@Codemycom Жыл бұрын
Thanks!
@HUSTLERSINC
@HUSTLERSINC 2 жыл бұрын
Thanks, so much, fr this is what I needed after so much searching
@Codemycom
@Codemycom 2 жыл бұрын
Glad you enjoyed it!
@jenilchudgar
@jenilchudgar 2 жыл бұрын
Nice Video!
@Codemycom
@Codemycom 2 жыл бұрын
Thanks!
@lakshmipadigala5498
@lakshmipadigala5498 3 жыл бұрын
Love your series. Can you please do a tutorials series like this for kivy. Kivy is a python module that allows you to cerate guis that could be used in any platform. Even ios. It would really helpful if you make your tutorials because I really didn't find any good videos for Kivy. Thank you.
@Codemycom
@Codemycom 3 жыл бұрын
Yes Kivy videos are coming very soon
@cpremix859
@cpremix859 3 жыл бұрын
im really new to python and was wondering if i wanted to use a game from another python file, how would i do that? for example, i have a platformer game and also a main software which holds them all together and there are buttons that open each game, i tried following this tutorial however the code for the game is very long and cant seem to put it in one main function to carry over to my gui software, i have been copying and pasting whole scripts into my gui and its becoming too long to read, i would be greatful for any help, thanks
@itsnotloveitslust
@itsnotloveitslust 3 жыл бұрын
Can you expand on the text editor series, and add something like basic syntax highlighting for programmers? Or maybe make a video on adding the Treeview to the text editor.
@Codemycom
@Codemycom 3 жыл бұрын
Probably won't do that...
@parsabahrambeik4381
@parsabahrambeik4381 3 жыл бұрын
Hello, thank you you video.
@Codemycom
@Codemycom 3 жыл бұрын
You're Welcome
@dhruvgupta5104
@dhruvgupta5104 3 жыл бұрын
Hello, Super useful video! Can i open another python program not a function defined in it from the tkinter code ? Also how can i put line numbers in Text Widget in tkinter ?
@leopillay8939
@leopillay8939 3 жыл бұрын
I love it wen u say its Friday here at Vegas, that's like ur slogan
@Codemycom
@Codemycom 3 жыл бұрын
Ha! I guess I have a catchphrase now! lol
@MagicByIzzy
@MagicByIzzy 3 жыл бұрын
Or Monday 😂😂
@Codemycom
@Codemycom 3 жыл бұрын
@@MagicByIzzy haha
@manutavano
@manutavano 3 жыл бұрын
thanks for the video
@Codemycom
@Codemycom 3 жыл бұрын
You're welcome
@ilyess8120
@ilyess8120 2 жыл бұрын
Thank u so much !!!!!!!!!!!!!!
@ClusterSeries
@ClusterSeries 3 жыл бұрын
Sir, can you make a video on How to change folder icons with Python on windows ?
@venkatvenky0079
@venkatvenky0079 3 жыл бұрын
Really helpful. Thank u..my doubt is, if we convert your example code to an executable file, will it work??
@Codemycom
@Codemycom 3 жыл бұрын
why wouldn't it?
@Kennethlumor
@Kennethlumor 3 жыл бұрын
sir please thank you for the tutorial
@Codemycom
@Codemycom 3 жыл бұрын
You're welcome!
@aniketzimane8175
@aniketzimane8175 Жыл бұрын
Can i set images in other file and can i access those images by calling class object or function name
@cmputerprgrammer7800
@cmputerprgrammer7800 3 жыл бұрын
from tkinter import * r = Tk() a = Label(r, text="Happy teacher's day thank you sir, I would have never made such programs without you.") a.pack() r.mainloop()
@Codemycom
@Codemycom 3 жыл бұрын
Ha, thanks!
@user-yq9qj8ve5j
@user-yq9qj8ve5j Жыл бұрын
exellent
@Codemycom
@Codemycom Жыл бұрын
Thanks!
@py_tok5589
@py_tok5589 3 жыл бұрын
Im following on github now, John
@Codemycom
@Codemycom 3 жыл бұрын
Cool
@koollucian
@koollucian 3 жыл бұрын
Sorry , John. I should have asked earlier..I assume you are creating the sample scripts in Python (for Windows) or some Python IDE? I can't seem to see those menus in PyCharm where I create my scripts. Thanks.
@Codemycom
@Codemycom 3 жыл бұрын
I don't use Pycharm, I use Sublime Text and the Git Bash terminal git-scm.com
@sunnypepple6571
@sunnypepple6571 8 ай бұрын
In navigating through different frames in the application, its important that a need to manage user sessions on states or values can still be seen in the application. Is there a rediux for tkinter application that helps such process?
@Codemycom
@Codemycom 8 ай бұрын
No, there's doesn't need to be. Only one user can use the app at a time, there is no need to manage sessions as such.
@adarsht6097
@adarsht6097 3 жыл бұрын
sir do you teach node.js and javascript?
@rezantuzak4106
@rezantuzak4106 3 жыл бұрын
I want to make monthly or yearly product keys for my tkinter app and sell this product keys, please make a video about securing a tkinter application with product key😢you are coolest man in this field 🥺please help me
@Codemycom
@Codemycom 3 жыл бұрын
You need to connect your app to an online database that holds the keys, then simply check the database to see if the user's key is in there.
@rezantuzak4106
@rezantuzak4106 3 жыл бұрын
@@Codemycom thank you so much ❤️❤️❤️❤️I was believed that only you will be a response for my question and you did it👏👏❤️you are really a good teacher 🌹💐thank you so much
@realxd553
@realxd553 Жыл бұрын
hi so i am making a ai and i want ui for it but i have a problem where when i put in the ui it runs first but only when i close it does the actual program run, does anyone have any ideas on how i can fix it?
@Kennethlumor
@Kennethlumor 3 жыл бұрын
but add to that want to ask (i got the way of converting python file into exe file without opening with the console
@ramanikantjha3086
@ramanikantjha3086 Жыл бұрын
I have a program that creates images as per user input (prompt). I want GUI to take the input, return it and execute the rest of the program. But Tkinter stops the said program, unless, I close Tkinter window. What should I do....
@Codemycom
@Codemycom Жыл бұрын
stackoverflow.com/questions/25028717/run-a-shell-script-from-python-gui
@tradingkernel
@tradingkernel 3 ай бұрын
Hi John, what if I want to load an external .py file in my already built tkinter app, more like a plugin
@Codemycom
@Codemycom 3 ай бұрын
Depends on the file
@tradingkernel
@tradingkernel 3 ай бұрын
@@Codemycom a py file, let’s say I want to have an already made tkinter application, that has a list of .py files I could select, in a folder, like an external plugin.
@TkinterPython
@TkinterPython 3 ай бұрын
@@tradingkernelI don't think it works how you're thinking.
@prizegotti
@prizegotti Жыл бұрын
I need a tutorial that shows me how I can do this with multiple tkinter py files, inserting each one into a frame. Really struggling to find any visual guidance.
@kaitlynvo6772
@kaitlynvo6772 6 ай бұрын
Hi John, what if I wanted to put the submit function into another file how would that work?
@Codemycom
@Codemycom 6 ай бұрын
import it like anything in python
@kaitlynvo6772
@kaitlynvo6772 5 ай бұрын
But the submit function calls my_box and my_box was created in this file?@@Codemycom
@shrirangmahajan9502
@shrirangmahajan9502 2 жыл бұрын
Hey John! I want to run one tkinter file from another tkinter file. But, whenever I import one tkinter file in other tkinter file, the imported file gets displayed (GUI gets displayed) and code stops working. I don't want to use os.system() as it display that black box (like command prompt). Is there any other way of connecting to tkinter files?
@Codemycom
@Codemycom 2 жыл бұрын
Not really...you don't import a tkinter app into another app. You can open another tkinter program from a tkinter program. If you want to import it you'll have to re-write the tkinter app to be more like a python app and import it as as normal...
@almontaser92
@almontaser92 Жыл бұрын
@@Codemycom Can you explain this in a video? That would be very cool
@Codemycom
@Codemycom Жыл бұрын
@@almontaser92 think I already have
@almontaser92
@almontaser92 Жыл бұрын
​@@Codemycom Maybe I haven't watched it yet, so I'm still at video number 137. In general, thank you very much for the effort and the wonderful way of explaining.
@JMO_44
@JMO_44 2 жыл бұрын
I have written a Pancakeswap Sniperbot with Python and the Program works perfectly. Now I have written a GUI with tkinter with a few button and I have implemented a database to record the snipes. Entry fields for: Wallet Address, Private Key, Token, BNB Amount and Gas Amount. The code works until here and the Data from the Entry Boxes will saved in the database but how can I link that with my Bot Code???
@Codemycom
@Codemycom 2 жыл бұрын
You likely don't link it...you write the bot code into the tkinter app.
@thealpha3270
@thealpha3270 Жыл бұрын
Hello Sir, I've stuck in a project which i have to connect the CLI tool called 'Volatility' with a gui using tkinter.. I have no idea how to do it.... But i came with an idea to assign a button to run the queries we run in the terminal to run that volatility tool.. Sir can u pls explain how to run a python query from a button using tkinter For example: py -2 vol.py -f imageinfo Is it possible to do that? I am stuck in this assignment and i have to pass the module... Thank you
@Codemycom
@Codemycom Жыл бұрын
Depends on the operating system you are using. Try Googling "how to run shell commands from tkinter"
@thealpha3270
@thealpha3270 Жыл бұрын
@@Codemycom thank you for the reply❤ sir, actually i wanted was, the user isn't typing the python query.... user is giving the file path only..I just want to assign that button only for executing that particular query.... Is there any possible way to do that ☹️
@Codemycom
@Codemycom Жыл бұрын
@@thealpha3270 sure. All buttons only do one thing, it's the normal use of a button.
@thealpha3270
@thealpha3270 Жыл бұрын
@@Codemycom thanks a lot i managed to create the button and it's working
@Codemycom
@Codemycom Жыл бұрын
@@thealpha3270 awesome
@vaishnavipatil5044
@vaishnavipatil5044 Жыл бұрын
Hi John ,it's not working in jupyter. Please help me out . please make a video for this in jupyter notebook
@Codemycom
@Codemycom Жыл бұрын
No sorry, I don't recommend you try to create tkinter apps in jupyter notebook.
@ebaadkhan8501
@ebaadkhan8501 3 жыл бұрын
2:32 what is the use of putting 'f' in the variable
@Codemycom
@Codemycom 3 жыл бұрын
that's an f string. It allows us to use variables and strings together
@acnologia910
@acnologia910 3 жыл бұрын
Hi John ! Actually I ran the time function but it is showing '%H' has no attribute strftime. Pls help.
@Codemycom
@Codemycom 3 жыл бұрын
Check your code for typos. Did you forget to import datetime?
@acnologia910
@acnologia910 3 жыл бұрын
@@Codemycom no I imported it.
@Codemycom
@Codemycom 3 жыл бұрын
@@acnologia910 Then you have a typo
@acnologia910
@acnologia910 3 жыл бұрын
@@Codemycom I don't understand.
@acnologia910
@acnologia910 3 жыл бұрын
@@Codemycom bcoz I copied the exact same code you ran.
@shaunakn5881
@shaunakn5881 3 жыл бұрын
Second because everybody here is first..
@sudin99and81
@sudin99and81 3 жыл бұрын
no .. no one's first 😒
@sudin99and81
@sudin99and81 3 жыл бұрын
nobody said that too😒😒
@Codemycom
@Codemycom 3 жыл бұрын
ha fun
@shaunakn5881
@shaunakn5881 3 жыл бұрын
@@sudin99and81 just a joke bro
@midex2723
@midex2723 Жыл бұрын
why isnt from namer import name working for me on pycharm
@midex2723
@midex2723 Жыл бұрын
nameit*
@Codemycom
@Codemycom Жыл бұрын
no clue, pycharm sucks. Don't use it.
@tazulislam2698
@tazulislam2698 2 жыл бұрын
my tkinter not support get().
@Codemycom
@Codemycom 2 жыл бұрын
Yes it does. Of course it does.
@mysticalgoogler
@mysticalgoogler 3 жыл бұрын
No weekend plans 😭
@Codemycom
@Codemycom 3 жыл бұрын
Ha, still time to get some!
@Kennethlumor
@Kennethlumor 3 жыл бұрын
and don't know know how to share this source code, cause someone to would be there searching for this method
@Codemycom
@Codemycom 3 жыл бұрын
Huh?
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 5 МЛН
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 20 МЛН
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 101 МЛН
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 18 МЛН
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
Create a GUI app with Tkinter - Step by Step Tutorial
23:56
Python Simplified
Рет қаралды 609 М.
Create Modern Buttons With Tkinter in Python | Tkinter GUI Button Design in Python
9:26
Fabio Musanni - Programming Channel
Рет қаралды 14 М.
WHAT Is "Glob" In Python?! (It's Actually Very Useful!)
11:15
Python Decorators in 15 Minutes
15:14
Kite
Рет қаралды 429 М.
Python GUI buttons 🛎️
11:40
Bro Code
Рет қаралды 72 М.
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 5 МЛН