chiark / gitweb /
Fix printer interface images for frozen build. Do not report an unknown gcode for...
[cura.git] / Cura / gui / printWindow.py
index dd14425a4e20e17cf238525622af89a78ef24a1d..39686ba473ccb2b189ee35a4793fc0796d1141dd 100644 (file)
@@ -6,6 +6,7 @@ from wx.lib import buttons
 \r
 from gui import machineCom\r
 from gui import icon\r
+from gui import toolbarUtil\r
 from util import profile\r
 from util import gcodeInterpreter\r
 \r
@@ -53,7 +54,7 @@ class printProcessMonitor():
 \r
 class PrintCommandButton(buttons.GenBitmapButton):\r
        def __init__(self, parent, command, bitmapFilename, size=(20,20)):\r
-               self.bitmap = wx.Bitmap(os.path.join(os.path.split(__file__)[0], "../images", bitmapFilename))\r
+               self.bitmap = toolbarUtil.getBitmapImage(bitmapFilename)\r
                super(PrintCommandButton, self).__init__(parent.directControlPanel, -1, self.bitmap, size=size)\r
 \r
                self.command = command\r