Ejemplo n.º 1
0
 def onResetProfile(self, event):
     """ """
     dlg = wx.MessageDialog(self, _("This will reset all profile settings to defaults.\nUnless you have saved your current profile, all settings will be lost!\nDo you really want to reset?"), _("Profile reset"), wx.YES_NO | wx.ICON_QUESTION)
     result = dlg.ShowModal() == wx.ID_YES
     dlg.Destroy()
     if result:
         profile.resetProfile()
         self.updateProfileToAllControls()
Ejemplo n.º 2
0
Archivo: main.py Proyecto: rp3d/ciclop
 def onResetProfile(self, event):
     """ """
     dlg = wx.MessageDialog(self, _("This will reset all profile settings to defaults.\nUnless you have saved your current profile, all settings will be lost!\nDo you really want to reset?"), _("Profile reset"), wx.YES_NO | wx.ICON_QUESTION)
     result = dlg.ShowModal() == wx.ID_YES
     dlg.Destroy()
     if result:
         profile.resetProfile()
         self.updateProfileToAllControls()