Skip to content

Commit

Permalink
Added Reset button for the override
Browse files Browse the repository at this point in the history
  • Loading branch information
vlachoudis committed Jan 12, 2017
1 parent 60b710f commit 615db3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Empty file added .git_cache_meta
Empty file.
10 changes: 7 additions & 3 deletions ControlPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,9 +941,13 @@ def __init__(self, master, app):
col,row=0,0
self.overrideCombo = tkExtra.Combobox(f, width=8, command=self.overrideComboChange)
self.overrideCombo.fill(OVERRIDES)
self.overrideCombo.grid(row=row, column=col, pady=0, sticky=NSEW)
self.overrideCombo.grid(row=row, column=col, pady=0, sticky=EW)
tkExtra.Balloon.set(self.overrideCombo, _("Select override type."))

b = Button(f, text="Reset", pady=0, command=self.resetOverride)
b.grid(row=row+1, column=col, pady=0, sticky=NSEW)
tkExtra.Balloon.set(b, _("Reset override to 100%"))

col += 1
self.overrideScale = Scale(f,
command=self.overrideChange,
Expand All @@ -955,13 +959,13 @@ def __init__(self, master, app):
resolution=1)
self.overrideScale.bind("<Double-1>", self.resetOverride)
self.overrideScale.bind("<Button-3>", self.resetOverride)
self.overrideScale.grid(row=row, column=col, columnspan=4, sticky=EW)
self.overrideScale.grid(row=row, column=col, rowspan=2, columnspan=4, sticky=EW)
tkExtra.Balloon.set(self.overrideScale, _("Set Feed/Rapid/Spindle Override. Right or Double click to reset."))

self.overrideCombo.set(OVERRIDES[0])

# ---
row += 1
row += 2
col = 0
b = Checkbutton(f, text=_("Spindle"),
image=Utils.icons["spinningtop"],
Expand Down

0 comments on commit 615db3a

Please sign in to comment.