You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
528 B

import tkinter as tk
from tkinter import ttk
from tkinter.messagebox import showinfo
class App(tk.Tk):
def __init__(self):
super().__init__()
# root
self.title('Jeu de rôle')
self.geometry('500x500')
# label
self.label = ttk.Label(self, text='Bienvenue !')
self.label.pack()
# button
self.button = ttk.Button(self, text='test')
self.button['command'] = self.button_clicked
self.button.pack()
def button_clicked(self):
showinfo(title='Information', message='Bonjour !')