Skip to content

Commit

Permalink
Double size icon in user settings
Browse files Browse the repository at this point in the history
  • Loading branch information
HomineLudens committed Jan 28, 2017
1 parent f3653dd commit 7a90224
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 @@ -96,6 +96,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 7a90224

Please sign in to comment.