def __set_properties(self): _icon = wx.NullIcon _icon.CopyFromBitmap(icons8_administrative_tools_50.GetBitmap()) self.SetIcon(_icon) # begin wxGlade: Preferences.__set_properties self.SetTitle(_("Preferences")) self.combobox_board.SetToolTip(_("Select the board to use. This has affects the speedcodes used.")) self.combobox_board.SetSelection(0) self.checkbox_swap_xy.SetToolTip(_("Swaps the X and Y axis. This happens before the FlipX and FlipY.")) self.checkbox_flip_x.SetToolTip(_("Flip the Right and Left commands sent to the controller")) self.checkbox_home_right.SetToolTip(_("Indicates the device Home is on the right")) self.checkbox_flip_y.SetToolTip(_("Flip the Top and Bottom commands sent to the controller")) self.checkbox_home_bottom.SetToolTip(_("Indicates the device Home is on the bottom")) self.checkbox_mock_usb.SetToolTip( _("DEBUG. Without a K40 connected continue to process things as if there was one.")) self.spin_device_index.SetToolTip(_("-1 match anything. 0-5 match exactly that value.")) self.spin_device_address.SetToolTip(_("-1 match anything. 0-5 match exactly that value.")) self.spin_device_bus.SetToolTip(_("-1 match anything. 0-5 match exactly that value.")) self.spin_device_version.SetToolTip(_("-1 match anything. 0-255 match exactly that value.")) self.spin_home_x.SetMinSize((80, 23)) self.spin_home_x.SetToolTip(_("Translate Home X")) self.spin_home_y.SetMinSize((80, 23)) self.spin_home_y.SetToolTip(_("Translate Home Y")) self.button_home_by_current.SetToolTip(_("Set Home Position based on the current position")) self.spin_bedwidth.SetMinSize((80, 23)) self.spin_bedwidth.SetToolTip(_("Width of the laser bed.")) self.spin_bedheight.SetMinSize((80, 23)) self.spin_bedheight.SetToolTip(_("Height of the laser bed.")) self.checkbox_autolock.SetToolTip(_("Lock rail after operations are finished.")) self.checkbox_autolock.SetValue(1) self.checkbox_autohome.SetToolTip(_("Home the machine after job is finished")) self.checkbox_autobeep.SetToolTip(_("Beep after the job is finished.")) self.checkbox_autobeep.SetValue(1)
def __init__(self, parent, *args, **kwds): # begin wxGlade: DeviceManager.__init__ if parent is None: wx.Frame.__init__(self, parent, -1, "", style=wx.DEFAULT_FRAME_STYLE) else: wx.Frame.__init__(self, parent, -1, "", style=wx.DEFAULT_FRAME_STYLE | wx.FRAME_FLOAT_ON_PARENT | wx.TAB_TRAVERSAL) Module.__init__(self) self.SetSize((707, 337)) self.devices_list = wx.ListCtrl(self, wx.ID_ANY, style=wx.LC_HRULES | wx.LC_REPORT | wx.LC_VRULES) self.new_device_button = wx.BitmapButton(self, wx.ID_ANY, icons8_plus_50.GetBitmap()) self.remove_device_button = wx.BitmapButton(self, wx.ID_ANY, icons8_trash_50.GetBitmap()) self.device_properties_button = wx.BitmapButton(self, wx.ID_ANY, icons8_administrative_tools_50.GetBitmap()) # self.move_item_up_button = wx.BitmapButton(self, wx.ID_ANY, icons8up.GetBitmap()) # self.move_item_down_button = wx.BitmapButton(self, wx.ID_ANY, icons8_down.GetBitmap()) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_LIST_BEGIN_DRAG, self.on_list_drag, self.devices_list) self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.on_list_item_activated, self.devices_list) self.Bind(wx.EVT_LIST_ITEM_RIGHT_CLICK, self.on_list_right_click, self.devices_list) self.Bind(wx.EVT_BUTTON, self.on_button_new, self.new_device_button) self.Bind(wx.EVT_BUTTON, self.on_button_remove, self.remove_device_button) self.Bind(wx.EVT_BUTTON, self.on_button_properties, self.device_properties_button) # self.Bind(wx.EVT_BUTTON, self.on_button_up, self.move_item_up_button) # self.Bind(wx.EVT_BUTTON, self.on_button_down, self.move_item_down_button) # end wxGlade self.Bind(wx.EVT_CLOSE, self.on_close, self) # OSX Window close if parent is not None: parent.accelerator_table(self)
def __set_properties(self): _icon = wx.NullIcon _icon.CopyFromBitmap(icons8_administrative_tools_50.GetBitmap()) self.SetIcon(_icon) # begin wxGlade: Settings.__set_properties self.SetTitle(_("Settings")) self.radio_units.SetBackgroundColour(wx.Colour(192, 192, 192)) self.radio_units.SetToolTip(_("Set default units for guides")) self.radio_units.SetSelection(0) self.combo_language.SetToolTip( _("Select the desired language to use."))
def __set_properties(self): _icon = wx.NullIcon _icon.CopyFromBitmap(icons8_administrative_tools_50.GetBitmap()) self.SetIcon(_icon) # begin wxGlade: Settings.__set_properties self.SetTitle(_("Settings")) self.radio_units.SetBackgroundColour(wx.Colour(192, 192, 192)) self.radio_units.SetToolTip(_("Set default units for guides")) self.radio_units.SetSelection(0) self.combo_language.SetToolTip( _("Select the desired language to use.")) self.combo_svg_ppi.SetToolTip( _("Select the Pixels Per Inch to use when loading an SVG file")) self.text_svg_ppi.SetMinSize((60, 23)) self.text_svg_ppi.SetToolTip( _("Custom Pixels Per Inch to use when loading an SVG file"))
def __set_properties(self): # begin wxGlade: Preferences.__set_properties self.SetTitle("Preferences") _icon = wx.NullIcon _icon.CopyFromBitmap(icons8_administrative_tools_50.GetBitmap()) self.SetIcon(_icon) self.combobox_board.SetToolTip( "Select the board to use. This has an effects the speedcodes used." ) self.combobox_board.SetSelection(0) self.radio_units.SetSelection(0) self.spin_bedwidth.SetMinSize((80, 23)) self.spin_bedwidth.SetToolTip("Width of the laser bed.") self.spin_bedheight.SetMinSize((80, 23)) self.spin_bedheight.SetToolTip("Height of the laser bed.") self.checkbox_autolock.SetToolTip( "Lock rail after operations are finished.") self.checkbox_autolock.SetValue(1) self.checkbox_autohome.SetToolTip( "Home the machine after job is finished") self.checkbox_autobeep.SetToolTip("Beep after the job is finished.") self.checkbox_autobeep.SetValue(1) self.spin_scalex.SetMinSize((80, 23)) self.spin_scalex.Enable(False) self.spin_scalex.SetIncrement(0.01) self.spin_scaley.SetMinSize((80, 23)) self.spin_scaley.Enable(False) self.spin_scaley.SetIncrement(0.01) self.checkbox_mock_usb.SetToolTip( "DEBUG. Without a K40 connected continue to process things as if there was one." ) self.spin_device_index.SetToolTip( "-1 match anything. 0-5 match exactly that value.") self.spin_device_index.Enable(False) self.spin_device_address.SetToolTip( "-1 match anything. 0-5 match exactly that value.") self.spin_device_address.Enable(False) self.spin_device_bus.SetToolTip( "-1 match anything. 0-5 match exactly that value.") self.spin_device_bus.Enable(False)
def __init__(self, *args, **kwds): # begin wxGlade: DeviceManager.__init__ kwds["style"] = kwds.get( "style", 0) | wx.DEFAULT_FRAME_STYLE | wx.FRAME_TOOL_WINDOW wx.Frame.__init__(self, *args, **kwds) self.SetSize((707, 337)) self.devices_list = wx.ListCtrl(self, wx.ID_ANY, style=wx.LC_HRULES | wx.LC_REPORT | wx.LC_VRULES) self.new_device_button = wx.BitmapButton(self, wx.ID_ANY, icons8_plus_50.GetBitmap()) self.remove_device_button = wx.BitmapButton( self, wx.ID_ANY, icons8_trash_50.GetBitmap()) self.device_properties_button = wx.BitmapButton( self, wx.ID_ANY, icons8_administrative_tools_50.GetBitmap()) self.move_item_up_button = wx.BitmapButton(self, wx.ID_ANY, icons8up.GetBitmap()) self.move_item_down_button = wx.BitmapButton(self, wx.ID_ANY, icons8_down.GetBitmap()) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_LIST_BEGIN_DRAG, self.on_list_drag, self.devices_list) self.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.on_list_item_activated, self.devices_list) self.Bind(wx.EVT_BUTTON, self.on_button_new, self.new_device_button) self.Bind(wx.EVT_BUTTON, self.on_button_remove, self.remove_device_button) self.Bind(wx.EVT_BUTTON, self.on_button_properties, self.device_properties_button) self.Bind(wx.EVT_BUTTON, self.on_button_up, self.move_item_up_button) self.Bind(wx.EVT_BUTTON, self.on_button_down, self.move_item_down_button) # end wxGlade self.Bind(wx.EVT_CLOSE, self.on_close, self) self.kernel = None
def __set_properties(self): # begin wxGlade: Preferences.__set_properties self.SetTitle("Preferences") _icon = wx.NullIcon _icon.CopyFromBitmap(icons8_administrative_tools_50.GetBitmap()) self.SetIcon(_icon) self.combobox_board.SetToolTip( "Select the board to use. This has an effects the speedcodes used." ) self.combobox_board.SetSelection(0) self.checkbox_1.SetToolTip( "Flip the Right and Left commands sent to the controller") self.checkbox_1.Enable(False) self.checkbox_3.SetToolTip("Indicates the device Home is on the right") self.checkbox_3.Enable(False) self.checkbox_2.SetToolTip( "Flip the Top and Bottom commands sent to the controller") self.checkbox_2.Enable(False) self.checkbox_4.SetToolTip( "Indicates the device Home is on the bottom") self.checkbox_4.Enable(False) self.spin_speed_max.SetMinSize((94, 23)) self.spin_speed_max.SetToolTip( "Speedcode permitted maximum set for vectors") self.spin_speed_max.Enable(False) self.spin_speed_max_raster.SetMinSize((94, 23)) self.spin_speed_max_raster.SetToolTip( "Speedcode permitted maximum set for rasters") self.spin_speed_max_raster.Enable(False) self.spin_home_x.SetMinSize((80, 23)) self.spin_home_x.SetToolTip("Translate Home X") self.spin_home_x.Enable(False) self.spin_home_y.SetMinSize((80, 23)) self.spin_home_y.SetToolTip("Translate Home Y") self.spin_home_y.Enable(False) self.button_home_by_current.SetToolTip( "Set Home Position based on the current position") self.button_home_by_current.Enable(False) self.radio_units.SetBackgroundColour(wx.Colour(192, 192, 192)) self.radio_units.SetToolTip("Set default units for guides") self.radio_units.SetSelection(0) self.spin_bedwidth.SetMinSize((80, 23)) self.spin_bedwidth.SetToolTip("Width of the laser bed.") self.spin_bedheight.SetMinSize((80, 23)) self.spin_bedheight.SetToolTip("Height of the laser bed.") self.checkbox_autolock.SetToolTip( "Lock rail after operations are finished.") self.checkbox_autolock.SetValue(1) self.checkbox_autohome.SetToolTip( "Home the machine after job is finished") self.checkbox_autobeep.SetToolTip("Beep after the job is finished.") self.checkbox_autobeep.SetValue(1) self.checkbox_mock_usb.SetToolTip( "DEBUG. Without a K40 connected continue to process things as if there was one." ) self.checkbox_multiple_devices.SetToolTip( "Specify matching criteria for the K40 to be used. Only matching K40 will be used." ) self.spin_device_index.SetToolTip( "-1 match anything. 0-5 match exactly that value.") self.spin_device_index.Enable(False) self.spin_device_address.SetToolTip( "-1 match anything. 0-5 match exactly that value.") self.spin_device_address.Enable(False) self.spin_device_bus.SetToolTip( "-1 match anything. 0-5 match exactly that value.") self.spin_device_bus.Enable(False)