Beispiel #1
0
 def OnCustomFirmware(self, e):
     dlg = wx.FileDialog(self,
                         "Open firmware to upload",
                         os.path.split(
                             profile.getPreference('lastFile'))[0],
                         style=wx.FD_OPEN | wx.FD_FILE_MUST_EXIST)
     dlg.SetWildcard("HEX file (*.hex)|*.hex;*.HEX")
     if dlg.ShowModal() == wx.ID_OK:
         filename = dlg.GetPath()
         if not (os.path.exists(filename)):
             return
         #For some reason my Ubuntu 10.10 crashes here.
         firmwareInstall.InstallFirmware(filename)
Beispiel #2
0
 def OnCustomFirmware(self, e):
     if profile.getPreference('machine_type') == 'ultimaker':
         wx.MessageBox(
             'Warning: Installing a custom firmware does not garantee that you machine will function correctly, and could damage your machine.',
             'Firmware update', wx.OK | wx.ICON_EXCLAMATION)
     dlg = wx.FileDialog(self,
                         "Open firmware to upload",
                         os.path.split(
                             profile.getPreference('lastFile'))[0],
                         style=wx.FD_OPEN | wx.FD_FILE_MUST_EXIST)
     dlg.SetWildcard("HEX file (*.hex)|*.hex;*.HEX")
     if dlg.ShowModal() == wx.ID_OK:
         filename = dlg.GetPath()
         if not (os.path.exists(filename)):
             return
         #For some reason my Ubuntu 10.10 crashes here.
         firmwareInstall.InstallFirmware(filename)
Beispiel #3
0
 def OnUpgradeClick(self, e):
     if firmwareInstall.InstallFirmware():
         self.GetParent().FindWindowById(wx.ID_FORWARD).Enable()
Beispiel #4
0
 def OnDefaultMarlinFirmware(self, e):
     firmwareInstall.InstallFirmware()