From 613a4b36c7eb0d6f40aaa61ba0e368725a33872e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 12 May 2015 22:39:40 +0100 Subject: [PATCH] Moved reset button --- GUI.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/GUI.py b/GUI.py index c250be9..1432770 100644 --- a/GUI.py +++ b/GUI.py @@ -85,17 +85,16 @@ class Options_Window: self.difficulty_scale = Scale(self.master, from_=5, to=500, orient="horizontal", command=self.update_difficulty, length=350) self.difficulty_scale.pack(ipadx=PADDING_BUTTON/3, padx=PADDING_BUTTON/3) self.difficulty_scale["value"] = self.options["Difficulty"] + self.difficulty_reset_button = Button(self.master, style="Minor.TButton") + self.difficulty_reset_button.config(text="Reset Difficulty") + self.difficulty_reset_button.pack(ipadx=PADDING_BUTTON/3, padx=PADDING_BUTTON/3) + self.difficulty_reset_button.bind('', self.reset_difficulty) Frame(self.master,height=23).pack() self.texture_title = Label(self.master) self.texture_title.config(text="Select Texture Pack", font=("Courier New", 13)) self.texture_title.pack(ipadx=PADDING_BUTTON/3, padx=PADDING_BUTTON) - self.texture_reset = Button(self.master, style="Minor.TButton") - self.texture_reset.config(text="Reset") - self.texture_reset.pack(ipadx=PADDING_BUTTON/3, padx=PADDING_BUTTON/3) - self.texture_reset.bind('', self.reset_difficulty) - self.texture_select = Listbox(master) self.texture_select.delete(0, END) for directory in self.options["Textures"].list_packs():