示例#1
0
文件: panels.py 项目: Claude59/horus
 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()
示例#2
0
 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()
示例#3
0
文件: panels.py 项目: Claude59/horus
 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()
示例#4
0
 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()
示例#5
0
	def resetProfile(self):
		profile.resetProfileSetting(self.name)
		del self.undoValues[:]
		self.updateProfile()
示例#6
0
	def resetProfile(self):
		profile.resetProfileSetting(self.name)
		del self.undoValues[:]
		self.updateProfile()