Learn Python tkinter GUI messageboxes easy 💭

preview_player
Показать описание
Python GUI messagebox tkinter tutorial for beginners

#Python #GUI #messagebox #tkinter #tutorial #beginners
Рекомендации по теме
Комментарии
Автор

from tkinter import *
from tkinter import messagebox #import messagebox library

def click():
is an info message box', message='You are a person')
#messagebox.showwarning(title='WARNING!', message='You have A VIRUS!!!!')
#messagebox.showerror(title='ERROR!', message='something went wrong :(')

#if ok cancel', message='Do you want to do the thing?'):
#print('You did a thing!')
#else:
#print('You canceled a thing! :(')

#if ok cancel', message='Do you want retry the thing?'):
#print('You retried a thing!')
#else:
#print('You canceled a thing! :(')

#if yes or no', message='Do you like cake?'):
#print('I like cake too :)')
#else:
#print('Why do you not like cake? :(')

#answer = question', message='Do you like pie?')
#if(answer == 'yes'):
#print('I like pie too :)')
#else:
#print('Why do you not like pie? :(')

#answer = Yes no cancel', message='Do you like to code?', icon='question')
#if(answer==True):
#print("You like to code :)")
#elif(answer==False):
#print("Then why are you watching a video on coding?")
#else:
#print("You have dodged the question ")

window = Tk()

button = Button(window, command=click, text='click me')
button.pack()

window.mainloop()

BroCodez
Автор

That 1 dislike is from youtube algorithm...You are amazing Bro!!!

odysseaskorelides
Автор

friendship ended with vbs, python is my best friend now

derpy
Автор

Things i will never know ghe answer to:
1.What music do youtuber use in their background.
2.What are the odds of me dying.
3.How many programming languages does Bro Code know.

noisyguest
Автор

Warning !! This is awesome tutorial !! thanks as always

piotrkopcewicz
Автор

That thing I saw at the beginning is really annoying, because error just won't allow you to do anything until you say OK to it. and if it comes repeatedly its gonna be so annoying you cant even do anything. Fortunately we can Kill the file.

faris.m
Автор

how would you use a msgbox to auto popup if the user entered integers in a text box on a data form for example?

micmike
Автор

Cool! But how do you have to put that window on a specific coordinate on the screen?

im_andrei
Автор

Please show me, how you turn the answer with GUI and various text size by its number ..?

saepulkamalpratama
Автор

Hi Bro! Thanks for Your super video guides! I have question for this videos. If I on top have "from tkinter import *" (from tkinter load ALL) WHY I must have on second row loading messagebox library? Thanks! V.

alix
Автор

hey fellow bros. why does bro code put conditions in parenthesis after if statments?

dogudagkan
Автор

Ahh its a nice program to send to my EX

Amir_Plays_non_stop
Автор

I used this to make my mom think that I downloaded a virus

Cyberbully
Автор

i used this code and put it in another script that would display the virus on my friends pc

primalant