models.py

mail@pastecode.io avatar
unknown
python
a month ago
947 B
1
Indexable
Never
import tkinter as tk

class Player(tk.Tk): #Class inherits from tk object

    def __init__(self):
        super().__init__()
        self.title("Player Stats")
        self.geometry("500x500")

        self.player_id = tk.Label(self, text="Player ID:")
        self.player_entry = tk.Entry(self)

        self.first_name = tk.Label(self, text="First Name:")
        self.first_name_entry = tk.Entry(self)

        self.last_name = tk.Label(self, text="Last Name: ")
        self.last_name_entry = tk.Entry(self)

        self.position = tk.Label(self, text="Position: ")
        self.position_entry = tk.Entry(self)

        self.total_bats = tk.Label(self, text="Total Bats: ")
        self.total_bats_entry = tk.Label(self)

        self.bats_hit = tk.Label(self, text="Bats hit: ")
        self.bats_hit_entry = tk.Label(self)

        self.percentage_hit = tk.Label(self, text="Percentage Hit: ")
        self,




class PlayerList:
    pass
Leave a Comment