def onButtonDefaultPressed(self, event): dlg = wx.MessageDialog(self, _("This will reset platform extrinsics profile settings to defaults.\nUnless you have saved your current profile, all settings will be lost! Do you really want to reset?"), _("Platform Extrinsics reset"), wx.YES_NO | wx.ICON_QUESTION) result = dlg.ShowModal() == wx.ID_YES dlg.Destroy() if result: profile.resetProfileSetting('rotation_matrix') profile.resetProfileSetting('translation_vector') self.updateProfile()
def onButtonDefaultPressed(self, event): dlg = wx.MessageDialog(self, _("This will reset laser triangulation profile settings to defaults.\nUnless you have saved your current profile, all settings will be lost! Do you really want to reset?"), _("Laser Triangulation reset"), wx.YES_NO | wx.ICON_QUESTION) result = dlg.ShowModal() == wx.ID_YES dlg.Destroy() if result: profile.resetProfileSetting('distance_left') profile.resetProfileSetting('normal_left') profile.resetProfileSetting('distance_right') profile.resetProfileSetting('normal_right') self.updateProfile()
def resetProfile(self): profile.resetProfileSetting(self.name) del self.undoValues[:] self.updateProfile()