Message Boxes with TKinter - Python Tkinter GUI Tutorial #13

  Рет қаралды 97,484

Codemy.com

Codemy.com

Күн бұрын

Пікірлер: 125
@Codemycom
@Codemycom 4 жыл бұрын
▶️ 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
@aburashed3418
@aburashed3418 3 жыл бұрын
You are the best because you explain without philosophy and useless talk, keep going king
@Codemycom
@Codemycom 3 жыл бұрын
Thanks, I will!
@nubcops220
@nubcops220 4 жыл бұрын
Wow i see you a very good teacher and your very interactive with your audiance so keep it up man!!
@Codemycom
@Codemycom 4 жыл бұрын
Thanks! Will do!
@SingKingdomHymns
@SingKingdomHymns 3 жыл бұрын
I love your tutorials codemy, now learn basic gui
@luchogofre
@luchogofre 3 жыл бұрын
I don't speak english very well but you teach so good that I understand it. Thanks mate.
@Codemycom
@Codemycom 3 жыл бұрын
Glad to hear it!
@junejaishere
@junejaishere 3 жыл бұрын
I was missing one thing and you corrected me and it helped me solved my error thanks man.
@Codemycom
@Codemycom 3 жыл бұрын
Glad to help!
@dicasonline4077
@dicasonline4077 4 жыл бұрын
Very good! I don't speak English, and yet I understood it very well. Ps = I used the google translator to comment.
@Codemycom
@Codemycom 4 жыл бұрын
Thank you!
@aadityabarve
@aadityabarve 7 ай бұрын
meaningful lessons and actionable insights. pure brilliance..
@Codemycom
@Codemycom 7 ай бұрын
Thanks!
@myselfsohit
@myselfsohit 4 жыл бұрын
enjoying a lot...feeling happy to see a teacher like u...love from india.........can u please a another youtube channel where u can talk about the technologies updates......
@Codemycom
@Codemycom 4 жыл бұрын
Thanks! Glad you're enjoying the videos. I've been coding for over 30 years and I tend to ignore technology updates until I have to.
@atakheli3608
@atakheli3608 4 жыл бұрын
Thankyou, you’ve earned a sub, you’ve got so many python tutorials which are so easy to understand
@Codemycom
@Codemycom 4 жыл бұрын
Glad you're enjoying them!
@atakheli3608
@atakheli3608 4 жыл бұрын
Codemy.com nice
@Codemycom
@Codemycom 4 жыл бұрын
@@atakheli3608 :-)
@thetongueshow
@thetongueshow 4 жыл бұрын
i just love the "which is insanely cheeeeeaaap" haha
@Codemycom
@Codemycom 4 жыл бұрын
Did it get you to buy? ;-)
@thetongueshow
@thetongueshow 4 жыл бұрын
@@Codemycom not yet, but if i manage to get more into details, it very well might :)
@God_OfGame
@God_OfGame 25 күн бұрын
you real goat thanks men
@Codemycom
@Codemycom 24 күн бұрын
thanks!
@brubru9663
@brubru9663 2 жыл бұрын
Thank you so much man!
@Codemycom
@Codemycom 2 жыл бұрын
Welcome!
@asomaitor
@asomaitor 2 жыл бұрын
Hello Jhon, THank you for your videos! I am learning a lot from there, I am Astronomer and always I wanted to upgrade my own codes with GUI!, thank you!!.. Also I would like to say something (I know this video is from 2019) in a Sublime text editor if you go to Tools, then Build System, you can select Python, for example, and then just pressing Ctrl+B .. in the same editor you will be able to lunch the code, meaning you will not need to save it and run it by terminal.. is faster!! :)
@Codemycom
@Codemycom 2 жыл бұрын
It's not a good way to run your code, it won't always work with all code. Better to take the 1-2 extra seconds and run your code correctly in a terminal.
@gbilo24
@gbilo24 2 жыл бұрын
Thank you so much for these amazing courses!
@dannyela12
@dannyela12 3 жыл бұрын
Thank you so much for sharing.
@Codemycom
@Codemycom 3 жыл бұрын
Thanks for watching!
@theboxdev
@theboxdev 4 жыл бұрын
We have imported every thing from tkinter using 'from tkinter import *' then why we are again importing 'messagebox' from tkinter, By the way, Nice Tutorials. Keep up the good work!
@Codemycom
@Codemycom 4 жыл бұрын
That's just the way it works with tkinter
@theboxdev
@theboxdev 4 жыл бұрын
Okay, Thank you
@Codemycom
@Codemycom 4 жыл бұрын
@@theboxdev Sure thing
@danmiller7709
@danmiller7709 3 жыл бұрын
I just wondered the same thing, saw it on multiple examples. Thanks All!
@OpharaOhiyana
@OpharaOhiyana 4 ай бұрын
I thought by the statement (from Tkinter import * ) we imported everything in it. Why are we importing messagebox separately? Can someone help me please? Otherwise I've been following all the previous tutorials which have helped me immensely! Thank you, Elder. You are a great teacher!
@Codemycom
@Codemycom 4 ай бұрын
That's just how it works.
@raniduharshana5238
@raniduharshana5238 4 жыл бұрын
Thank you so much
@Codemycom
@Codemycom 4 жыл бұрын
No problem
@parsabahrambeik4381
@parsabahrambeik4381 4 жыл бұрын
Hi, thank you very much for your video.
@Codemycom
@Codemycom 4 жыл бұрын
So nice of you
@m.k_rahman6670
@m.k_rahman6670 Жыл бұрын
Hi john can we use this message box to show / Display a recorded video ?? and is there is an video of your that tell how to open diffrent images ,recorded videos and how to open camra in 1 GUI with out closing the GUI mean can I do all 3 things in one 1 GUI rather then run code 3 time for the same thing
@Codemycom
@Codemycom Жыл бұрын
no
@lovelle5488
@lovelle5488 4 жыл бұрын
Hi i am trying to create a message box which only pops up when my comboboxes are empty to tell the user to input data. I used an if statement but now when the comboboxes arent empty the message still pops up. I need it to continue to run the function when the user puts info. How do i do this, i'm still learning python. Thank you.
@thengakola6217
@thengakola6217 4 жыл бұрын
U could ctrl+/ for commenting multiple lines in sunlime
@Codemycom
@Codemycom 4 жыл бұрын
ok
@gpsserbia
@gpsserbia 5 жыл бұрын
Why did you import "messagebox" from tkinter, if you already made "from tkinter import *"? Otherwise, great tutorials!
@Codemycom
@Codemycom 5 жыл бұрын
try it without and see what happens
@gpsserbia
@gpsserbia 5 жыл бұрын
@@Codemycom I see. Messagebox not defined. Thanks.
@TechWithSabri
@TechWithSabri 5 жыл бұрын
i find this in stack overflow : That's simply the way the package was designed to work. The author of tkinter decided that importing "*" wouldn't import messagebox, or some of the other packages (ttk is another example) Generally speaking, you should never do import * anyway. good luck bro
@wozdog7425
@wozdog7425 3 жыл бұрын
just what i was thinking - good answer below
@luckazelena8945
@luckazelena8945 2 жыл бұрын
Man, you almost got me an A in Ikt. But suddenly the error showed up. Thanks man!
@Codemycom
@Codemycom 2 жыл бұрын
ha!
@stivunnikolov5941
@stivunnikolov5941 3 жыл бұрын
Its friday here in Vegas.....
@victorstrokin3369
@victorstrokin3369 3 жыл бұрын
I have a question, is there a way to make another window open? I wanna make this program that bombards the person with these boxes
@Codemycom
@Codemycom 3 жыл бұрын
Yes, I have videos on the playlist about opening windows
@not1AM
@not1AM 3 жыл бұрын
great video ... thanks... but why dont you use ctrl+B to run the code.. it is way faster
@Codemycom
@Codemycom 3 жыл бұрын
I prefer to use a real terminal, it's more professional and the Ctrl+B thing has severe limitations.
@harshrana2004
@harshrana2004 4 жыл бұрын
Thanks
@Codemycom
@Codemycom 4 жыл бұрын
You're welcome!
@shaunakn5881
@shaunakn5881 4 жыл бұрын
thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@Codemycom
@Codemycom 4 жыл бұрын
You're welcome!
@fentonmsu
@fentonmsu 4 жыл бұрын
How would mount the button to say close file and a reminder to savw
@saba1551
@saba1551 4 жыл бұрын
Will this code will work for android phones too nDoes this message box is available for android phones too??
@Codemycom
@Codemycom 4 жыл бұрын
Tkinter isn't an android thing
@analeticiamartins2199
@analeticiamartins2199 4 жыл бұрын
Very good, man! Does anyone know how can I deactivate the message box sound?
@myselfsohit
@myselfsohit 4 жыл бұрын
go to sounds setting in control pannel .....
@cmputerprgrammer7800
@cmputerprgrammer7800 4 жыл бұрын
Sir , How to set their background,fg color and customise them?
@errorhostnotfound1165
@errorhostnotfound1165 3 жыл бұрын
add ,fg="COLOR" for the color of the text and ,bg="COLOR" for the background where COLOR is the color you want. Works with hex
@dicasonline4077
@dicasonline4077 4 жыл бұрын
Muito bom == Very good
@Codemycom
@Codemycom 4 жыл бұрын
Thank you!
@shafayatmugdha7330
@shafayatmugdha7330 2 жыл бұрын
How can I change the button color in message box yes no?
@aneeshmalapaka8363
@aneeshmalapaka8363 4 жыл бұрын
if i want to use this without buttons like want to print a popup for an exception then what should i do? i tried writing if statement for zerodivision error and now i wanna print a msg box when it happens... the logic i used is if math=="division" and second_number==button_0: and i am stuck after that....
@suvarnasampagavi8328
@suvarnasampagavi8328 2 жыл бұрын
How to remove the codemy icon which is used in the root from the subsequent message box?
@brubru9663
@brubru9663 2 жыл бұрын
the root.title() function, just delete it
@almontaser92
@almontaser92 Жыл бұрын
I have a question, as long as the command (from tkinter import *) imports everything inside the tkinter module, why should the messagebox library be re-imported with a separate line (from tkinter import messagebox)
@Codemycom
@Codemycom Жыл бұрын
That's just how Tkinter works
@almontaser92
@almontaser92 Жыл бұрын
@@Codemycom AHA! I see Honestly! Your efforts and quick response to your followers' comments and questions are impressive and deserve a lot of thanks
@akilamp8470
@akilamp8470 4 жыл бұрын
Can we give options of our own in the ask question one?
@Codemycom
@Codemycom 4 жыл бұрын
Not sure what you're asking
@akilamp8470
@akilamp8470 4 жыл бұрын
@@Codemycom like we ask a question and instead of just yes and no, I give them some specific options?
@Codemycom
@Codemycom 4 жыл бұрын
@@akilamp8470 Sorry, I still don't know what you're talking about.
@mms0537
@mms0537 4 жыл бұрын
Where can we get the Documentation for All sorts of things i.e messagebox thing you showed.
@Codemycom
@Codemycom 4 жыл бұрын
Not here lol
@bennysalim354
@bennysalim354 4 жыл бұрын
Hi John I encounter problems with my showerror messagebox after pyinstaller exe, all showerror message become showwarning how i fixed that could u help? thanks Regards
@Codemycom
@Codemycom 4 жыл бұрын
I kind of find that hard to believe...making your app an exe file wouldn't change the code in the app
@bennysalim664
@bennysalim664 4 жыл бұрын
Yes John. But it really happen when i run the build in my sublime tex in works fine for messagebox but when i run the exe from pyinstaler the messagebox still works but the error icon (red X) it become (blue !). Did yours error icon works fine in exe pyinstaller? Or its only me?
@Codemycom
@Codemycom 4 жыл бұрын
@@bennysalim664 it's only you, you've done something weird
@mariamkhanam4037
@mariamkhanam4037 3 жыл бұрын
What Terminal Do U using here?
@Codemycom
@Codemycom 3 жыл бұрын
git-scm.com
@roopapandey651
@roopapandey651 3 жыл бұрын
Thanksssssssss
@Codemycom
@Codemycom 3 жыл бұрын
Sure thing
@Sthasis10
@Sthasis10 3 жыл бұрын
doesn't the (import * ) imports all the modules/functions from the tkniter. why should we import the messagebox again? could you please help me on this one? i dont get that part.
@Codemycom
@Codemycom 3 жыл бұрын
nope, that's not how tkinter works
@fritzzcasts
@fritzzcasts 4 жыл бұрын
why did u import message box again although you had already imported everyting using * in the first line?
@Codemycom
@Codemycom 4 жыл бұрын
That's just what tkinter requires
@iMohamedAbodia
@iMohamedAbodia 2 жыл бұрын
Can i Simply Create A Popup MessageBox Without Clicking Button on Tkinter
@MananJain-w5c
@MananJain-w5c 7 ай бұрын
I want to know the same not working for my case
@mee8963
@mee8963 3 жыл бұрын
I think askquestion and askyesno both result the output as same.
@mee8963
@mee8963 3 жыл бұрын
Finally I came to know the difference. 😅
@Codemycom
@Codemycom 3 жыл бұрын
@@mee8963 lol
@sarthaksrivastava6282
@sarthaksrivastava6282 4 жыл бұрын
want to know that in previous videos you were assigning the label and button a name like my_label but here you are not, when to use names and not
@Codemycom
@Codemycom 4 жыл бұрын
If you need to reference them in the future, they need a variable name so that you can do so. If not...not.
@aajad490
@aajad490 3 жыл бұрын
👍❤️👌
@Codemycom
@Codemycom 3 жыл бұрын
:-)
@itssuhan
@itssuhan 3 жыл бұрын
I encounter a problem where I get the messagebox and once I Click okay it takes me back to the first window instead of staying in the current page where the button is situated
@Codemycom
@Codemycom 3 жыл бұрын
isn't that what's supposed to happen?
@itssuhan
@itssuhan 3 жыл бұрын
@@Codemycom I want to replicate a situation where a person fills a form and he successfully fills it and there is a message box which tells you that the task is done successfully and then I want to continue to be in the same window rather than going back to the first page
@jenilchudgar
@jenilchudgar 3 жыл бұрын
1 K like my me!
@Codemycom
@Codemycom 3 жыл бұрын
Awesome
@gangraul7735
@gangraul7735 3 жыл бұрын
Hiw to not see yes or no,just the response you set
@Codemycom
@Codemycom 3 жыл бұрын
not sure what you're asking
@gangraul7735
@gangraul7735 3 жыл бұрын
When i enter "yes" it return 1 and the text, i only need the text
@guyincognito5614
@guyincognito5614 3 жыл бұрын
here's my comment
@Codemycom
@Codemycom 3 жыл бұрын
Here’s my reply
@guyincognito5614
@guyincognito5614 3 жыл бұрын
@@Codemycom:D
@scoopedcontent
@scoopedcontent 4 жыл бұрын
You look like walter white
@Codemycom
@Codemycom 4 жыл бұрын
Ha
@shlokbajaj2133
@shlokbajaj2133 3 жыл бұрын
How are u not certified YETTTT!
@Codemycom
@Codemycom 3 жыл бұрын
certified in what way?
@yashchoudhary5944
@yashchoudhary5944 4 жыл бұрын
my button is not having comma d
@Codemycom
@Codemycom 4 жыл бұрын
Huh?
Create New Windows in tKinter - Python Tkinter GUI Tutorial #14
9:52
Radio Buttons with TKinter - Python Tkinter GUI Tutorial #12
17:44
Which team will win? Team Joy or Team Gumball?! 🤔
00:29
BigSchool
Рет қаралды 14 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 22 МЛН
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 30 МЛН
Tkinter Messagebox and Popups - Tkinter tutorial for beginners #7
19:49
Code First with Hala
Рет қаралды 4,6 М.
Simple Login Application - Tkinter Python
12:32
NeuralNine
Рет қаралды 7 М.
Using Databases With TKinter - Python Tkinter GUI Tutorial #19
9:40
Setting and getting widget data in tkinter
13:43
Atlas
Рет қаралды 11 М.
Using button functions with arguments in tkinter
8:04
Atlas
Рет қаралды 18 М.
Create a GUI app with Tkinter - Step by Step Tutorial
23:56
Python Simplified
Рет қаралды 616 М.
How To Add Scrollbar To The Frame In Tkinter - Python
17:34
CodeWorked
Рет қаралды 50 М.
Which team will win? Team Joy or Team Gumball?! 🤔
00:29
BigSchool
Рет қаралды 14 МЛН