frm - PHP Online
Form of PHP Sandbox
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of frm.php
- class App(customtkinter.CTk):
- def __init__(self):
- super().__init__()
- # configure wnd =========================
- self.title("Legion Quest Manager")
- self.geometry(f"{1180}x{680}")
- # configure grid layout ==============
- self.grid_columnconfigure(1, weight=1)
- self.grid_columnconfigure((2, 3), weight=0)
- self.grid_rowconfigure((0, 1, 2), weight=1)
- # create sidebar frame with widgets
- self.sidebar_frame = customtkinter.CTkFrame(self, width=140, corner_radius=0)
- self.sidebar_frame.grid(row=0, column=0, rowspan=4, sticky="nsew")
- self.sidebar_frame.grid_rowconfigure(4, weight=1)
- self.logo_label = customtkinter.CTkLabel(self.sidebar_frame, text="Quest Manager",
- font=customtkinter.CTkFont(size=20, weight="bold"))
- self.logo_label.grid(row=0, column=0, padx=20, pady=(20, 10))
- self.sidebar_button_1 = customtkinter.CTkButton(self.sidebar_frame, text="Create Quest")
- self.sidebar_button_1.grid(row=1, column=0, padx=20, pady=10)
- self.sidebar_button_2 = customtkinter.CTkButton(self.sidebar_frame, text="Edit Quest")
- self.sidebar_button_2.grid(row=2, column=0, padx=20, pady=10)
- self.sidebar_button_3 = customtkinter.CTkButton(self.sidebar_frame, text="Delete Quest")
- self.sidebar_button_3.grid(row=3, column=0, padx=20, pady=10)
- self.appearance_mode_label = customtkinter.CTkLabel(self.sidebar_frame, text="Appearance Mode:", anchor="w")
- self.appearance_mode_label.grid(row=5, column=0, padx=20, pady=(10, 0))
- self.appearance_mode_optionemenu = customtkinter.CTkOptionMenu(self.sidebar_frame,
- values=["Light", "Dark", "System"], command=self.change_appearance_mode_event)
- self.appearance_mode_optionemenu.grid(row=6, column=0, padx=20, pady=(10, 10))
- # create checkbox for actions
- self.checkbox_frame = customtkinter.CTkFrame(self)
- self.checkbox_frame.grid(row=0, column=3, padx=(20, 20), pady=(20, 0), sticky="nsew")
- self.checkbox_label = customtkinter.CTkLabel(self.checkbox_frame, text="Select option's:", anchor="w")
- self.checkbox_label.grid(row=1, column=0, pady=(20, 10), padx=20, sticky="n")
- self.checkbox_1 = customtkinter.CTkCheckBox(master=self.checkbox_frame, text="Create Scripts")
- self.checkbox_1.grid(row=2, column=0, pady=(20, 10), padx=20, sticky="n")
- self.checkbox_2 = customtkinter.CTkCheckBox(master=self.checkbox_frame, text="Create DB")
- self.checkbox_2.grid(row=3, column=0, pady=10, padx=20, sticky="n")
- self.checkbox_3 = customtkinter.CTkCheckBox(master=self.checkbox_frame, text="Create Media")
- self.checkbox_3.grid(row=4, column=0, pady=10, padx=20, sticky="n")
- # create start frame
- self.start_frame = customtkinter.CTkFrame(self)
- self.start_frame.grid(row=1, column=3, padx=(20, 20), pady=(20, 0), sticky="nsew")
- self.start_button_1 = customtkinter.CTkButton(self.start_frame, text="Clear All")
- self.start_button_1.grid(row=2, column=0, padx=20, pady=10)
- self.start_button_2 = customtkinter.CTkButton(self.start_frame, text="GENERATE", command=self.generate)
- self.start_button_2.grid(row=3, column=0, padx=20, pady=10)
- # create tabview
- self.tabview = customtkinter.CTkTabview(self, width=750, height=500)
- #self.tabview.grid(row=0, column=2, padx=(20, 0), pady=(2, 0), sticky="nsew")
- self.tabview.add("Collect")
- self.tabview.add("Kill")
- self.tabview.add("Talk")
- self.tabview.tab("Collect").grid_columnconfigure(0, weight=1)
- self.tab2_frame = self.tabview.tab("Collect")
- self.canvas = customtkinter.CTkCanvas(self.tab2_frame, width=750, height=560, borderwidth=0, background="#0000FF")
- self.frame = tkinter.Frame(self.canvas,width=750, height=560, background="#00FF00")
- self.frame.grid(row=0, column=0, rowspan=4, sticky="nsew")
- self.frame.grid_rowconfigure(1, weight=1)
- self.vsb = customtkinter.CTkScrollbar(self.tab2_frame, command=self.canvas.yview)
- self.canvas.configure(yscrollcommand=self.vsb.set)
- self.vsb.pack(side="right", fill="y")
- self.canvas.pack( fill="both", expand=False)
- self.canvas.create_window((0, 0), window=self.frame, anchor="nw",
- tags="frame")
- self.frame.bind("<Configure>", self.onFrameConfigure)
- self.populate()
- self.tabview.grid(row=0, column=2, padx=(20, 0), pady=(0, 0), sticky="nsew")
- #self.tabview.tab("Collect").grid_columnconfigure(1, weight=1) # configure grid of individual tabs
- #self.tabview.tab("Collect").grid_columnconfigure((2, 3), weight=0)
- #self.tabview.tab("Collect").grid_rowconfigure((0, 1, 2), weight=0)
- # ------------------ COLLECT -------------
- # create textbox
- self.textbox = customtkinter.CTkTextbox(self, height=100)
- self.textbox.grid(row=1, column=2, padx=(20, 0), pady=(20, 0), sticky="nsew")
- # dev info
- self.developer = customtkinter.CTkLabel(self, text="Created by Kesatas @ Legion Online")
- self.developer.grid(row=2, column=2, padx=(0, 0), pady=(0, 0), sticky="nsew")
- self.mainloop()
- def change_appearance_mode_event(self, new_appearance_mode: str):
- customtkinter.set_appearance_mode(new_appearance_mode)
- def populate(self):
- self.collect_name_lable = customtkinter.CTkLabel(self.frame, text="Quest Name")
- self.collect_name_lable.grid(row=0, column=0, padx=0, pady=0)
- self.collect_name_input = customtkinter.CTkEntry(self.frame, placeholder_text="QNO_TEST_QUEST")
- self.collect_name_input.grid(row=0, column=1, padx=0, pady=0)
- self.collect_id_lable = customtkinter.CTkLabel(self.frame, text="Quest ID")
- self.collect_id_lable.grid(row=1, column=0, padx=0, pady=0)
- self.collect_id_input = customtkinter.CTkEntry(self.frame, placeholder_text="12345")
- self.collect_id_input.grid(row=1, column=1, padx=0, pady=0)
- self.collect_npc_lable = customtkinter.CTkLabel(self.frame, text="Npc Codename")
- self.collect_npc_lable.grid(row=2, column=0, padx=0, pady=0)
- self.collect_npc_input = customtkinter.CTkEntry(self.frame, placeholder_text="NPC_CH_SMITH")
- self.collect_npc_input.grid(row=2, column=1, padx=0, pady=0)
- self.collect_ritem_lable = customtkinter.CTkLabel(self.frame, text="Reward Item")
- self.collect_ritem_lable.grid(row=3, column=0, padx=0, pady=0)
- self.collect_ritem_input = customtkinter.CTkEntry(self.frame,
- placeholder_text="ITEM_MALL_GLOBAL_CHATTING")
- self.collect_ritem_input.grid(row=3, column=1, padx=0, pady=0)
- self.collect_ritemcount_lable = customtkinter.CTkLabel(self.frame, text="Reward's Amount")
- self.collect_ritemcount_lable.grid(row=4, column=0, padx=0, pady=0)
- self.collect_ritemcount_input = customtkinter.CTkEntry(self.frame, placeholder_text="20")
- self.collect_ritemcount_input.grid(row=4, column=1, padx=0, pady=0)
- self.collect_rexp_lable = customtkinter.CTkLabel(self.frame, text="Reward Exp")
- self.collect_rexp_lable.grid(row=5, column=0, padx=0, pady=0)
- self.collect_rexp_input = customtkinter.CTkEntry(self.frame, placeholder_text="12345")
- self.collect_rexp_input.grid(row=5, column=1, padx=0, pady=0)
- self.collect_rsp_lable = customtkinter.CTkLabel(self.frame, text="Reward Sp")
- self.collect_rsp_lable.grid(row=6, column=0, padx=0, pady=0)
- self.collect_rsp_input = customtkinter.CTkEntry(self.frame, placeholder_text="12345")
- self.collect_rsp_input.grid(row=6, column=1, padx=0, pady=0)
- self.collect_rgold_lable = customtkinter.CTkLabel(self.frame, text="Reward Gold")
- self.collect_rgold_lable.grid(row=7, column=0, padx=0, pady=0)
- self.collect_rgold_input = customtkinter.CTkEntry(self.frame, placeholder_text="12345")
- self.collect_rgold_input.grid(row=7, column=1, padx=0, pady=0)
- self.collect_level_input = customtkinter.CTkEntry(self.frame, placeholder_text="Lvl required")
- self.collect_level_input.grid(row=8, column=1, padx=0, pady=0)
- # requirements
- self.collect_monster_lable_1 = customtkinter.CTkLabel(self.frame, text="Monster Codename 1")
- self.collect_monster_lable_1.grid(row=9, column=0, padx=0, pady=0)
- self.collect_monster_input_1 = customtkinter.CTkEntry(self.frame,
- placeholder_text="MOB_CH_MANGNYANG")
- self.collect_monster_input_1.grid(row=9, column=1, padx=0, pady=0)
- self.collect_monster_type_1 = customtkinter.CTkOptionMenu(self.frame, dynamic_resizing=False,
- values=["Normal", "Champion", "Giant", "Unique"])
- self.collect_monster_type_1.grid(row=9, column=2, padx=0, pady=(0, 0))
- self.collect_qitem_lable_1 = customtkinter.CTkLabel(self.frame, text="Quest Item 1")
- self.collect_qitem_lable_1.grid(row=10, column=0, padx=0, pady=0)
- self.collect_qitem_input_1 = customtkinter.CTkEntry(self.frame,
- placeholder_text="ITEM_CH_BLAHBLAH")
- self.collect_qitem_input_1.grid(row=10, column=1, padx=0, pady=0)
- self.collect_qitem_rate_1 = customtkinter.CTkOptionMenu(self.frame, dynamic_resizing=False,
- values=["rate 10%", "rate 25%", "rate 35%", "rate 50%",
- "rate 75%", "rate 100%"])
- self.collect_qitem_rate_1.grid(row=10, column=2, padx=0, pady=(0, 0))
- self.collect_qitemcount_lable_1 = customtkinter.CTkLabel(self.frame, text="Items Required 1")
- self.collect_qitemcount_lable_1.grid(row=11, column=0, padx=0, pady=0)
- self.collect_qitemcount_input_1 = customtkinter.CTkEntry(self.frame,
- placeholder_text="12345")
- self.collect_qitemcount_input_1.grid(row=11, column=1, padx=0, pady=0)
- self.collect_monster_lable_2 = customtkinter.CTkLabel(self.frame, text="Monster Codename 2")
- self.collect_monster_lable_2.grid(row=12, column=0, padx=0, pady=0)
- self.collect_monster_input_2 = customtkinter.CTkEntry(self.frame,
- placeholder_text="MOB_CH_MANGNYANG")
- self.collect_monster_input_2.grid(row=12, column=1, padx=0, pady=0)
- self.collect_monster_type_2 = customtkinter.CTkOptionMenu(self.frame, dynamic_resizing=False,
- values=["Normal", "Champion", "Giant", "Unique"])
- self.collect_monster_type_2.grid(row=12, column=2, padx=0, pady=(0, 0))
- self.collect_qitem_lable_2 = customtkinter.CTkLabel(self.frame, text="Quest Item 2")
- self.collect_qitem_lable_2.grid(row=13, column=0, padx=0, pady=0)
- self.collect_qitem_input_2 = customtkinter.CTkEntry(self.frame,
- placeholder_text="ITEM_CH_BLAHBLAH")
- self.collect_qitem_input_2.grid(row=13, column=1, padx=0, pady=0)
- self.collect_qitem_rate_2 = customtkinter.CTkOptionMenu(self.frame, dynamic_resizing=False,
- values=["rate 10%", "rate 25%", "rate 35%", "rate 50%",
- "rate 75%", "rate 100%"])
- self.collect_qitem_rate_2.grid(row=13, column=2, padx=0, pady=(0, 0))
- self.collect_qitemcount_lable_2 = customtkinter.CTkLabel(self.frame, text="Items Required 2")
- self.collect_qitemcount_lable_2.grid(row=14, column=0, padx=0, pady=0)
- self.collect_qitemcount_input_2 = customtkinter.CTkEntry(self.frame,
- placeholder_text="12345")
- self.collect_qitemcount_input_2.grid(row=14, column=1, padx=0, pady=0)
- self.collect_monster_lable_3 = customtkinter.CTkLabel(self.frame, text="Monster Codename 3")
- self.collect_monster_lable_3.grid(row=15, column=0, padx=0, pady=0)
- self.collect_monster_input_3 = customtkinter.CTkEntry(self.frame,
- placeholder_text="MOB_CH_MANGNYANG")
- self.collect_monster_input_3.grid(row=15, column=1, padx=0, pady=0)
- self.collect_monster_type_3 = customtkinter.CTkOptionMenu(self.frame, dynamic_resizing=False,
- values=["Normal", "Champion", "Giant", "Unique"])
- self.collect_monster_type_3.grid(row=15, column=2, padx=0, pady=(0, 0))
- self.collect_qitem_lable_3 = customtkinter.CTkLabel(self.frame, text="Quest Item 3")
- self.collect_qitem_lable_3.grid(row=16, column=0, padx=0, pady=0)
- self.collect_qitem_input_3 = customtkinter.CTkEntry(self.frame,
- placeholder_text="ITEM_CH_BLAHBLAH")
- self.collect_qitem_input_3.grid(row=16, column=1, padx=0, pady=0)
- self.collect_qitem_rate_3 = customtkinter.CTkOptionMenu(self.frame, dynamic_resizing=False,
- values=["rate 10%", "rate 25%", "rate 35%", "rate 50%",
- "rate 75%", "rate 100%"])
- self.collect_qitem_rate_3.grid(row=16, column=2, padx=0, pady=(0, 0))
- self.collect_qitemcount_lable_2 = customtkinter.CTkLabel(self.frame, text="Items Required 3")
- self.collect_qitemcount_lable_2.grid(row=17, column=0, padx=0, pady=0)
- self.collect_qitemcount_input_2 = customtkinter.CTkEntry(self.frame,
- placeholder_text="12345")
- self.collect_qitemcount_input_2.grid(row=17, column=1, padx=0, pady=0)
- self.collect_qitemcount_lable_6 = customtkinter.CTkLabel(self.frame, text="Items Required 1")
- self.collect_qitemcount_lable_6.grid(row=18, column=0, padx=0, pady=0)
- self.collect_qitemcount_lable_7 = customtkinter.CTkLabel(self.frame, text="Items Required 1")
- self.collect_qitemcount_lable_7.grid(row=19, column=0, padx=0, pady=0)
- self.collect_qitemcount_lable_8 = customtkinter.CTkLabel(self.frame, text="Items Required 1")
- self.collect_qitemcount_lable_8.grid(row=20, column=0, padx=0, pady=0)
- self.collect_qitemcount_lable_9 = customtkinter.CTkLabel(self.frame, text="Items Required 1")
- self.collect_qitemcount_lable_9.grid(row=21, column=0, padx=0, pady=0)
- def onFrameConfigure(self, event):
- '''Reset the scroll region to encompass the inner frame'''
- self.canvas.configure(scrollregion=self.canvas.bbox("all"))
File Description
- frm
- PHP Code
- 03 Feb-2023
- 14.88 Kb
You can Share it:
Latest PHP Pastes