Commit f63fef7b authored by Ilya Novoselov's avatar Ilya Novoselov

Remove unused make_sized_button function and buttonSize variable

parent 9cd04236
...@@ -21,9 +21,6 @@ except: ...@@ -21,9 +21,6 @@ except:
print _("WX is not installed. This program requires WX to run.") print _("WX is not installed. This program requires WX to run.")
raise raise
global buttonSize
buttonSize = (70, 25) # Define sizes for the buttons on top rows
from printrun import gviz from printrun import gviz
from printrun.xybuttons import XYButtons from printrun.xybuttons import XYButtons
from printrun.zbuttons import ZButtons from printrun.zbuttons import ZButtons
...@@ -41,9 +38,6 @@ def make_button(parent, label, callback, tooltip, container = None, size = wx.De ...@@ -41,9 +38,6 @@ def make_button(parent, label, callback, tooltip, container = None, size = wx.De
container.Add(button) container.Add(button)
return button return button
def make_sized_button(*args):
return make_button(*args, size = buttonSize)
def make_autosize_button(*args): def make_autosize_button(*args):
return make_button(*args, size = (-1, -1), style = wx.BU_EXACTFIT) return make_button(*args, size = (-1, -1), style = wx.BU_EXACTFIT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment