Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

tkinter simple notification

from tkinter import *
from sys import exit
def popupError(s):
    popupRoot = Tk()
    popupRoot.after(2000, exit)
    popupButton = Button(popupRoot, text = s, font = ("Verdana", 12), bg = "yellow", command = exit)
    popupButton.pack()
    popupRoot.geometry('400x50+700+500')
    popupRoot.mainloop()
Comment

PREVIOUS NEXT
Code Example
Python :: django create object with default today date 
Python :: takes 1 positional argument but 2 were given python 
Python :: lerp function 
Python :: python split every character in string 
Python :: python how to remove item from list 
Python :: one line if statement no else 
Python :: turn a list into a string python 
Python :: python counting dictionary 
Python :: How to take total count of words in the list python 
Python :: how to delete all instances of a model in django 
Python :: how to have requirement file in python for libs 
Python :: python grouped bar chart 
Python :: how to logout in django 
Python :: python substring 
Python :: python append filename to path 
Python :: slicing of tuple in python 
Python :: how to get confusion matrix in python 
Python :: contextlib.subppress python 
Python :: jinja conditional syntax 
Python :: label change in tkinter 
Python :: python split paragraph 
Python :: how to use function in python 
Python :: python b before string 
Python :: how to use fastapi ApiClient with pytest 
Python :: get_dummies 
Python :: number of days in a month python 
Python :: blender scripting set active ojbect 
Python :: reading json file 
Python :: how to convert .ui file to .py 
Python :: PhoneNumberField django forms 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =