import platform
class aboutWindow(wx.Frame):
- def __init__(self):
- super(aboutWindow, self).__init__(None, title=_("About"), style = wx.DEFAULT_DIALOG_STYLE)
+ def __init__(self, parent):
- super(aboutWindow, self).__init__(parent, title="About", style = wx.DEFAULT_DIALOG_STYLE)
++ super(aboutWindow, self).__init__(parent, title=_("About"), style = wx.DEFAULT_DIALOG_STYLE)
wx.EVT_CLOSE(self, self.OnClose)
self.ctrl.Bind(wx.EVT_TEXT, self.OnSettingChange)
flag = wx.EXPAND
+ self.ctrl.Bind(wx.EVT_ENTER_WINDOW, self.OnMouseEnter)
sizer.Add(self.label, (x,y), flag=wx.ALIGN_CENTER_VERTICAL|wx.LEFT,border=10)
- sizer.Add(self.ctrl, (x,y+1), flag=wx.ALIGN_BOTTOM|flag)
+ sizer.Add(self.ctrl, (x,y+1), flag=wx.ALIGN_CENTER_VERTICAL|flag)
+ if self.setting.getExpertSubCategory() is not None:
+ self._expert_button = wx.Button(panel, -1, '...', style=wx.BU_EXACTFIT)
+ self._expert_button.SetFont(wx.Font(wx.SystemSettings.GetFont(wx.SYS_ANSI_VAR_FONT).GetPointSize() * 0.8, wx.FONTFAMILY_DEFAULT, wx.NORMAL, wx.FONTWEIGHT_NORMAL))
+ self._expert_button.Bind(wx.EVT_BUTTON, self.OnExpertOpen)
+ sizer.Add(self._expert_button, (x,y+2), flag=wx.ALIGN_CENTER_VERTICAL)
sizer.SetRows(x+1)
self.ctrl.Bind(wx.EVT_ENTER_WINDOW, self.OnMouseEnter)
class preferencesDialog(wx.Dialog):
def __init__(self, parent):
- super(preferencesDialog, self).__init__(parent, title="Preferences")
- super(preferencesDialog, self).__init__(None, title=_("Preferences"))
++ super(preferencesDialog, self).__init__(parent, title=_("Preferences"))
wx.EVT_CLOSE(self, self.OnClose)
class machineSettingsDialog(wx.Dialog):
def __init__(self, parent):
- super(machineSettingsDialog, self).__init__(parent, title="Machine settings")
- super(machineSettingsDialog, self).__init__(None, title=_("Machine settings"))
++ super(machineSettingsDialog, self).__init__(parent, title=_("Machine settings"))
wx.EVT_CLOSE(self, self.OnClose)
self.statsText.SetLabel(info)
if connection.isPrinting() != self._isPrinting:
self._isPrinting = connection.isPrinting()
- preventComputerFromSleeping(self._isPrinting)
+ preventComputerFromSleeping(self, self._isPrinting)
+ def _addTermLog(self, msg):
+ pass
+
+ def _addTermLog(self, msg):
+ pass
+
def _updateButtonStates(self):
self.connectButton.Show(self._printerConnection.hasActiveConnection())
self.connectButton.Enable(not self._printerConnection.isActiveConnectionOpen() and not self._printerConnection.isActiveConnectionOpening())
setting('extruder_offset_y2', '0.0', float, 'machine', 'hidden').setLabel(_("Offset Y"), _("The offset of your tertiary extruder compared to the primary."))
setting('extruder_offset_x3', '0.0', float, 'machine', 'hidden').setLabel(_("Offset X"), _("The offset of your forth extruder compared to the primary."))
setting('extruder_offset_y3', '0.0', float, 'machine', 'hidden').setLabel(_("Offset Y"), _("The offset of your forth extruder compared to the primary."))
+setting('extruder_z_offset', '0.0', float, 'machine', 'hidden').setLabel(_("Z-Offset (mm)"), _("This value will be added to the Z coordinate of every line in the output G-Code to compensate for a badly calibrate Z height endstop."))
++
setting('steps_per_e', '0', float, 'machine', 'hidden').setLabel(_("E-Steps per 1mm filament"), _("Amount of steps per mm filament extrusion. If set to 0 then this value is ignored and the value in your firmware is used."))
setting('serial_port', 'AUTO', str, 'machine', 'hidden').setLabel(_("Serial port"), _("Serial port to use for communication with the printer"))
setting('serial_port_auto', '', str, 'machine', 'hidden')