8000 GitHub - nimferato96/name
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nimferato96/name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

name

import tkinter as tk from random import choice

List of South African male names

south_african_names = [ "Thabiso", "Siyabonga", "Mandlenkosi", "Mpho", "Thandiso", "Sibusiso", "Lungile", "Luthando", "Nkosi", "Sipho" ]

def generate_name(): name = choice(south_african_names) name_label.config(text=name)

Create the main window

root = tk.Tk() root.title("South African Male Name Generator") root.geometry("400x200")

Button to generate a name

generate_button = tk.Button(root, text="Generate Name", command=generate_name) generate_button.pack(pady=20)

Label to display the generated name

name_label = tk.Label(root, text="", font=("Helvetica", 18)) name_label.pack(pady=20)

Run the main event loop

root.mainloop()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0