Skip to content

Commit

Permalink
Merge pull request #506 from Effer/master-double-size-icon
Browse files Browse the repository at this point in the history
Double size icon in user settings
  • Loading branch information
vlachoudis authored Jan 29, 2017
2 parents 095edda + 7a90224 commit 2e050a1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CNC.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,8 @@ def loadConfig(config):
except: pass
try: CNC.lasercutter = bool(int(config.get(section, "lasercutter")))
except: pass
try: CNC.doublesizeicon = bool(int(config.get(section, "doublesizeicon")))
except: pass
try: CNC.acceleration_x = float(config.get(section, "acceleration_x"))
except: pass
try: CNC.acceleration_y = float(config.get(section, "acceleration_y"))
Expand Down
1 change: 1 addition & 0 deletions ToolsPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ def __init__(self, master):
self.variables = [
("units" , "bool", 0 , _("Units (inches)")) ,
("lasercutter" , "bool", 0 , _("Lasercutter")) ,
("doublesizeicon", "bool", 0 , _("Double Size Icon")) ,
("acceleration_x", "mm" , 25.0 , _("Acceleration x")) ,
("acceleration_y", "mm" , 25.0 , _("Acceleration y")) ,
("acceleration_z", "mm" , 5.0 , _("Acceleration z")) ,
Expand Down
2 changes: 2 additions & 0 deletions Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def loadIcons():
name,ext = os.path.splitext(os.path.basename(img))
try:
icons[name] = PhotoImage(file=img)
if getBool("CNC", "doublesizeicon"):
icons[name] = icons[name].zoom(2,2)
except TclError:
pass

Expand Down
1 change: 1 addition & 0 deletions bCNC.ini
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ command.2 = G53 G0 X[prbx] Y[prby] Z[prbz]
[CNC]
units = 0
lasercutter = 0
doublesizeicon = 0
acceleration_x = 25
acceleration_y = 25
acceleration_z = 50
Expand Down

0 comments on commit 2e050a1

Please sign in to comment.