Untitled

mail@pastecode.io avatar
unknown
python
a year ago
923 B
1
Indexable
Never
import tkinter as tk
from tkinter import ttk

class MediaApp:
    def __init__(self, root):
        self.root = root
        self.root.title("Media Viewer App")

        self.create_widgets()

    def create_widgets(self):
        self.label = ttk.Label(self.root, text="Welcome to Media Viewer App!")
        self.label.pack(pady=10)

        self.play_video_button = ttk.Button(self.root, text="Play Video", command=self.play_video)
        self.play_video_button.pack(pady=5)

        self.show_photo_button = ttk.Button(self.root, text="Show Photo", command=self.show_photo)
        self.show_photo_button.pack(pady=5)

    def play_video(self):
        # Add code here to play a video
        print("Playing video...")

    def show_photo(self):
        # Add code here to display a photo
        print("Displaying photo...")

if __name__ == "__main__":
    root = tk.Tk()
    app = MediaApp(root)
    root.mainloop()