def open_about(): """This method opens the About Window""" about.About_Window()
def open_about(): """This method open the about window""" about.About_Window()
def open_about(): about.About_Window()
def open_about(self): """Opens about window.""" self.c = about.About_Window(self.master)
def address_ui(self): """This methods adds widgets to the Address Window""" self.background = tk.PhotoImage(file='resources/line.png') self.background_image = tk.Label(self.window_edit_address, image=self.background, bg='black') self.background_image.place(x=5, y=240) self.heading = tk.Label(self.window_edit_address, text='Store your Information Safely', font=('arial', 20, 'bold'), bg='black', fg='orange') self.heading.pack() self.about_image = tk.PhotoImage(file='resources/about.png') self.about_icon = tk.Button(self.window_edit_address, image=self.about_image, bg='black', fg='white', relief='flat', command=lambda: about.About_Window()) self.about_icon.place(x=440, y=0) self.feature_name = tk.Label(self.window_edit_address, text='Feature Name', font=( 'arial', 12, 'bold'), bg='black', fg='white') self.feature_name.place(x=10, y=50) self.feature_name_entry_var = tk.StringVar() self.feature_name_entry = tk.Entry(self.window_edit_address, textvariable=self.feature_name_entry_var, font=( 'arial', 12), bg='#C0C0C0', width=20) self.feature_name_entry.place(x=130, y=50) self.feature_name_entry_var.set(self.fe_name) self.feature_name_entry.focus() self.note_for_feature_name = tk.Label(self.window_edit_address, text='Note: Feature name is displayed on the button in the Main window', font=( 'arial', 10), bg='black', fg='orange') self.note_for_feature_name.place(x=2, y=75) self.address_line_1 = tk.Label(self.window_edit_address, text='Address Line 1', font=( 'arial', 12, 'bold'), bg='black', fg='white') self.address_line_1.place(x=5, y=100) self.address_line_1_entry_var = tk.StringVar() self.address_line_1_entry = tk.Entry(self.window_edit_address, textvariable=self.address_line_1_entry_var, font=('arial', 12), bg='#C0C0C0', width=30) self.address_line_1_entry.place(x=130, y=100) self.address_line_1_entry_var.set(self.address_1) self.data_add_1 = self.address_line_1_entry_var.get() self.copy_image = tk.PhotoImage(file='resources/copy.png') self.copy_add_1 = tk.Button(self.window_edit_address, image=self.copy_image, relief='groove', command=lambda: self.copy_data(self.data_add_1)) self.copy_add_1.place(x=410, y=100) self.address_line_2 = tk.Label(self.window_edit_address, text='Address Line 2', font=( 'arial', 12, 'bold'), bg='black', fg='white') self.address_line_2.place(x=5, y=125) self.address_line_2_entry_var = tk.StringVar() self.address_line_2_entry = tk.Entry(self.window_edit_address, textvariable=self.address_line_2_entry_var, font=('arial', 12), bg='#C0C0C0', width=30) self.address_line_2_entry.place(x=130, y=125) self.address_line_2_entry_var.set(self.address_2) self.data_add_2 = self.address_line_2_entry_var.get() self.copy_add_2 = tk.Button(self.window_edit_address, image=self.copy_image, relief='groove', command=lambda: self.copy_data(self.data_add_2)) self.copy_add_2.place(x=410, y=125) self.town_label = tk.Label(self.window_edit_address, text='Town/City', font=( 'arial', 12, 'bold'), bg='black', fg='white') self.town_label.place(x=40, y=150) self.town_entry_var = tk.StringVar() self.town_entry = tk.Entry(self.window_edit_address, textvariable=self.town_entry_var, font=( 'arial', 12), bg='#C0C0C0', width=20) self.town_entry.place(x=130, y=150) self.town_entry_var.set(self.town) self.town_data = self.town_entry_var.get() self.copy_town = tk.Button(self.window_edit_address, image=self.copy_image, relief='groove', command=lambda: self.copy_data(self.town_data)) self.copy_town.place(x=320, y=150) self.district_label = tk.Label(self.window_edit_address, text='District', font=( 'arial', 12, 'bold'), bg='black', fg='white') self.district_label.place(x=60, y=175) self.district_entry_var = tk.StringVar() self.district_entry = tk.Entry(self.window_edit_address, textvariable=self.district_entry_var, font=('arial', 12), bg='#C0C0C0', width=20) self.district_entry.place(x=130, y=175) self.district_entry_var.set(self.district) self.data_district = self.district_entry_var.get() self.copy_district = tk.Button(self.window_edit_address, image=self.copy_image, relief='groove', command=lambda: self.copy_data(self.data_district)) self.copy_district.place(x=320, y=175) self.state_label = tk.Label(self.window_edit_address, text='State', font=( 'arial', 12, 'bold'), bg='black', fg='white') self.state_label.place(x=75, y=200) self.state_entry_var = tk.StringVar() self.state_entry = tk.Entry(self.window_edit_address, textvariable=self.state_entry_var, font=('arial', 12), bg='#C0C0C0', width=20) self.state_entry.place(x=130, y=200) self.state_entry_var.set(self.state) self.data_state = self.state_entry_var.get() self.copy_state = tk.Button(self.window_edit_address, image=self.copy_image, relief='groove', command=lambda: self.copy_data(self.data_state)) self.copy_state.place(x=320, y=200) self.pin_label = tk.Label(self.window_edit_address, text='Pin Code', font=( 'arial', 12, 'bold'), bg='black', fg='white') self.pin_label.place(x=45, y=225) self.pin_code_entry_var = tk.StringVar() self.pin_code_entry = tk.Entry(self.window_edit_address, textvariable=self.pin_code_entry_var, font=('arial', 12), bg='#C0C0C0', width=20) self.pin_code_entry.place(x=130, y=225) self.pin_code_entry_var.set(self.pin) self.data_pin = self.pin_code_entry_var.get() self.copy_pin = tk.Button(self.window_edit_address, image=self.copy_image, relief='groove', command=lambda: self.copy_data(self.data_pin)) self.copy_pin.place(x=320, y=225) self.save_button = tk.Button(self.window_edit_address, text='Save', font=( 'consolas', 13, 'bold'), relief='groove', width=8, bg='#f1f5e0', command=self.get_data) self.save_button.place(x=30, y=300) self.save_button.bind('<Enter>', self.entered_storage_save_button) self.save_button.bind('<Leave>', self.leave_storage_save_button) self.clear_button = tk.Button(self.window_edit_address, text='Clear', font=( 'consolas', 13, 'bold'), relief='groove', width=8, bg='#f1f5e0', command=self.clear) self.clear_button.place(x=180, y=300) self.clear_button.bind('<Enter>', self.entered_storage_clear_button) self.clear_button.bind('<Leave>', self.leave_storage_clear_button) self.exit_button = tk.Button(self.window_edit_address, text='Exit', font=( 'consolas', 13, 'bold'), relief='groove', width=8, bg='#f1f5e0', command=self.exit_window) self.exit_button.place(x=330, y=300) self.exit_button.bind('<Enter>', self.entered_storage_exit_button) self.exit_button.bind('<Leave>', self.leave_storage_exit_button) self.window_edit_address.focus_force() self.window_edit_address.mainloop()
def about_window(): """This function opens the about_window""" about.About_Window()