Beispiel #1
0
	def OnSaveDifferences(self, e):
		dlg=wx.FileDialog(self, _("Select profile file to save"), os.path.split(profile.getPreference('lastFile'))[0], style=wx.FD_SAVE)
		dlg.SetWildcard("ini files (*.ini)|*.ini")
		if dlg.ShowModal() == wx.ID_OK:
			profile_filename = dlg.GetPath()
			if not profile_filename.lower().endswith('.ini'): #hack for linux, as for some reason the .ini is not appended.
				profile_filename += '.ini'
			profile.saveProfileDifferenceFromDefault(profile_filename)
		dlg.Destroy()
Beispiel #2
0
	def OnSaveDifferences(self, e):
		dlg=wx.FileDialog(self, _("Select profile file to save"), os.path.split(profile.getPreference('lastFile'))[0], style=wx.FD_SAVE)
		dlg.SetWildcard("ini files (*.ini)|*.ini")
		if dlg.ShowModal() == wx.ID_OK:
			profile_filename = dlg.GetPath()
			if not profile_filename.lower().endswith('.ini'): #hack for linux, as for some reason the .ini is not appended.
				profile_filename += '.ini'
			profile.saveProfileDifferenceFromDefault(profile_filename)
		dlg.Destroy()