Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- #Copyright © 2021 Benoît Boudaud https://miamondo.org/contact
- #This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
- # License as published by the Free Software Foundation, either version 3 of the License, or any later version.
- #This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
- # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- # You should have received a copy of the GNU General Public License along with this program.
- # If not, see <http://www.gnu.org/licenses/>
- # ----------------------------------------------------------------------------------------------------------------------
- import tkinter as tk
- # ----------------------------------------------------------------------------------------------------------------------
- root = tk.Tk()
- label = tk.Label(
- root,
- font="14",
- justify="left",
- padx=10,
- pady=10,
- text="Attention! L'ordinateur va\ns'éteindre dans cinq minutes.\n\
- Enregistrez vos documents.")
- label.grid(row=0, column=0)
- button = tk.Button(
- root,
- bg="red",
- command=root.destroy,
- fg="white",
- font="14",
- padx=10,
- pady=10,
- text="OK")
- button.grid(row=1, column=0, padx=5, pady=5, sticky="news")
- # ----------------------------------------------------------------------------------------------------------------------
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement