diff --git a/GIFCraft.py b/GIFCraft.py index f4e8571..8982641 100644 --- a/GIFCraft.py +++ b/GIFCraft.py @@ -47,6 +47,7 @@ class GIFEditor: self.create_file_menu() self.create_edit_menu() self.create_animation_menu() + self.create_help_menu() # Add this line to include the Help menu self.master.config(menu=self.menu_bar) def create_file_menu(self): @@ -83,6 +84,12 @@ class GIFEditor: animation_menu.add_command(label="Play/Stop Animation", command=self.toggle_play_pause, accelerator="Space") self.menu_bar.add_cascade(label="Animation", menu=animation_menu) + def create_help_menu(self): + """Create the Help menu.""" + help_menu = Menu(self.menu_bar, tearoff=0) + help_menu.add_command(label="About", command=self.show_about) # Add this line to create the About menu item + self.menu_bar.add_cascade(label="Help", menu=help_menu) + def setup_frame_list(self): """Set up the frame list with scrollbar.""" self.frame_list_frame = Frame(self.master) @@ -479,6 +486,10 @@ class GIFEditor: current_var = self.checkbox_vars[self.frame_index] current_var.set(0 if current_var.get() else 1) + def show_about(self): + """Display the About dialog.""" + messagebox.showinfo("About GIFCraft", "GIFCraft - GIF Editor\nVersion 1.0\n© 2024 by Seehrum") + def main(): root = tk.Tk() app = GIFEditor(master=root)