mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	re-checkin with "ISO-8859 translation" turned on.
This commit is contained in:
		
							parent
							
								
									b8bf163dde
								
							
						
					
					
						commit
						edab93939e
					
				
					 12 changed files with 58 additions and 58 deletions
				
			
		|  | @ -14,9 +14,9 @@ def __init__(self): | |||
| 		 | ||||
| 		#self.window.bevelbox = W.BevelBox((0, 0, 0, 56)) | ||||
| 		self.window.openbutton = W.Button((10, 8, 80, 16), "Open", self.openbuttonhit) | ||||
| 		self.window.browsebutton = W.Button((100, 8, 80, 16), "BrowseÉ", self.browsebuttonhit) | ||||
| 		self.window.browsebutton = W.Button((100, 8, 80, 16), "BrowseŠ", self.browsebuttonhit) | ||||
| 		self.window.reloadbutton = W.Button((10, 32, 80, 16), "Reload", self.reloadbuttonhit) | ||||
| 		self.window.openotherbutton = W.Button((100, 32, 80, 16), "Open otherÉ", self.openother) | ||||
| 		self.window.openotherbutton = W.Button((100, 32, 80, 16), "Open otherŠ", self.openother) | ||||
| 		 | ||||
| 		self.window.openbutton.enable(0) | ||||
| 		self.window.reloadbutton.enable(0) | ||||
|  | @ -81,7 +81,7 @@ def openbuttonhit(self): | |||
| 					file, path, description = imp.find_module(modname) | ||||
| 				except ImportError: | ||||
| 					W.SetCursor("arrow") | ||||
| 					W.Message("CanÕt find file for module Ò%sÓ."  | ||||
| 					W.Message("Can¹t find file for module ³%s²."  | ||||
| 							% modname) | ||||
| 				else: | ||||
| 					self.openscript(path, modname)					 | ||||
|  | @ -93,7 +93,7 @@ def openscript(self, path, modname): | |||
| 		elif path[-4:] in ['.pyc', '.pyo']: | ||||
| 			W.getapplication().openscript(path[:-1], modname=modname) | ||||
| 		else: | ||||
| 			W.Message("CanÕt edit Ò%sÓ; it might be a shared library or a .pyc file."  | ||||
| 			W.Message("Can¹t edit ³%s²; it might be a shared library or a .pyc file."  | ||||
| 					% modname) | ||||
| 	 | ||||
| 	def openother(self): | ||||
|  | @ -106,9 +106,9 @@ def openother(self): | |||
| 				file, path, description = imp.find_module(modname) | ||||
| 			except ImportError: | ||||
| 				if modname in sys.builtin_module_names: | ||||
| 					alerttext = "Ò%sÓ is a builtin module, which you canÕt edit." % modname | ||||
| 					alerttext = "³%s² is a builtin module, which you can¹t edit." % modname | ||||
| 				else: | ||||
| 					alerttext = "No module named Ò%sÓ." % modname | ||||
| 					alerttext = "No module named ³%s²." % modname | ||||
| 				raise W.AlertError, alerttext | ||||
| 			self.openscript(path, modname) | ||||
| 	 | ||||
|  |  | |||
|  | @ -36,7 +36,7 @@ def double_repr(key, value, truncvalue = 0, | |||
| 			value = _repr(value) | ||||
| 			'' + value	# test to see if it is a string, in case a __repr__ method is buggy | ||||
| 		except: | ||||
| 			value = '¥¥¥ exception in repr()' | ||||
| 			value = '€€€ exception in repr()' | ||||
| 	if truncvalue: | ||||
| 		return key + '\t' + value[:255] | ||||
| 	return key + '\t' + value | ||||
|  | @ -358,7 +358,7 @@ def update(self): | |||
| def unpack_object(object, indent = 0): | ||||
| 	tp = type(object) | ||||
| 	if tp in SIMPLE_TYPES and tp is not types.NoneType: | ||||
| 		raise TypeError, 'canÕt browse simple type: %s' % tp.__name__ | ||||
| 		raise TypeError, 'can¹t browse simple type: %s' % tp.__name__ | ||||
| 	elif tp == types.DictionaryType: | ||||
| 		return unpack_dict(object, indent) | ||||
| 	elif tp in (types.TupleType, types.ListType): | ||||
|  |  | |||
|  | @ -156,8 +156,8 @@ def __init__(self, bounds, show = 1, fontsettings = ("Monaco", 0, 9, (0, 0, 0)), | |||
| 	def makenamespacemenu(self, *args): | ||||
| 		W.SetCursor('watch') | ||||
| 		namespacelist = self.getnamespacelist() | ||||
| 		self.namespacemenu.set([("Clear window", self.clearbuffer), ("Font settingsÉ", self.dofontsettings),  | ||||
| 				["Namespace"] + namespacelist, ("Browse namespaceÉ", self.browsenamespace)]) | ||||
| 		self.namespacemenu.set([("Clear window", self.clearbuffer), ("Font settingsŠ", self.dofontsettings),  | ||||
| 				["Namespace"] + namespacelist, ("Browse namespaceŠ", self.browsenamespace)]) | ||||
| 		currentname = self.consoletext._namespace["__name__"] | ||||
| 		for i in range(len(namespacelist)): | ||||
| 			if namespacelist[i][0] == currentname: | ||||
|  | @ -264,7 +264,7 @@ def setupwidgets(self): | |||
| 				tabbable = 0) | ||||
| 		self.w.outputtext = OutputTextWidget((-1, -1, -14, 1), inset = (6, 5),  | ||||
| 				fontsettings = self.fontsettings, tabsettings = self.tabsettings, readonly = 1) | ||||
| 		menuitems = [("Clear window", self.clearbuffer), ("Font settingsÉ", self.dofontsettings)] | ||||
| 		menuitems = [("Clear window", self.clearbuffer), ("Font settingsŠ", self.dofontsettings)] | ||||
| 		self.w.popupmenu = W.PopupMenu((-15, -1, 16, 16), menuitems) | ||||
| 		 | ||||
| 		self.w._bary = W.Scrollbar((-15, 14, 16, -14), self.w.outputtext.vscroll, max = 32767) | ||||
|  |  | |||
|  | @ -72,7 +72,7 @@ def start(self, bottomframe = None, running = 0): | |||
| 		self.botframe = bottomframe | ||||
| 		if running: | ||||
| 			self.set_continue() | ||||
| 			self.reason = 'RunningÉ' | ||||
| 			self.reason = 'RunningŠ' | ||||
| 			self.setstate('running') | ||||
| 		else: | ||||
| 			self.set_step() | ||||
|  | @ -187,7 +187,7 @@ def setupwidgets(self, title): | |||
| 	def makeoptionsmenu(self): | ||||
| 		options = [('Clear breakpoints', self.w.panes.bottom.src.source.clearbreakpoints),  | ||||
| 				('Clear all breakpoints', self.clear_all_breaks), | ||||
| 				('Edit breakpointsÉ', self.edit_breaks), '-', | ||||
| 				('Edit breakpointsŠ', self.edit_breaks), '-', | ||||
| 				(self.tracemagic and  | ||||
| 					'Disable __magic__ tracing' or 'Enable __magic__ tracing', self.togglemagic)] | ||||
| 		self.w.panes.bottom.src.optionsmenu.set(options) | ||||
|  | @ -318,7 +318,7 @@ def do_stepout(self): | |||
| 	 | ||||
| 	def running(self): | ||||
| 		W.SetCursor('watch') | ||||
| 		self.reason = 'RunningÉ' | ||||
| 		self.reason = 'RunningŠ' | ||||
| 		self.setstate('running') | ||||
| 		#self.w.panes.bottom.src.source.set('') | ||||
| 		#self.w.panes.browserpanes.stacklist.stack.set([]) | ||||
|  | @ -350,7 +350,7 @@ def showframe(self, stackindex): | |||
| 						try: | ||||
| 							f, filename, (suff, mode, dummy) = imp.find_module(modname) | ||||
| 						except ImportError: | ||||
| 							self.w.panes.bottom.src.source.set('canÕt find file') | ||||
| 							self.w.panes.bottom.src.source.set('can¹t find file') | ||||
| 						else: | ||||
| 							if f: | ||||
| 								f.close() | ||||
|  | @ -360,9 +360,9 @@ def showframe(self, stackindex): | |||
| 								f.close() | ||||
| 								self.w.panes.bottom.src.source.set(data, filename) | ||||
| 							else: | ||||
| 								self.w.panes.bottom.src.source.set('canÕt find file') | ||||
| 								self.w.panes.bottom.src.source.set('can¹t find file') | ||||
| 					else: | ||||
| 						self.w.panes.bottom.src.source.set('canÕt find file') | ||||
| 						self.w.panes.bottom.src.source.set('can¹t find file') | ||||
| 				else: | ||||
| 					self.w.panes.bottom.src.source.set(data, filename) | ||||
| 			self.file = filename | ||||
|  | @ -682,7 +682,7 @@ def __init__(self, debugger): | |||
| 		self.w.panes.files = W.List(None, callback = self.filehit)		#, flags = Lists.lOnlyOne) | ||||
| 		self.w.panes.gr = W.Group(None) | ||||
| 		self.w.panes.gr.breaks = W.List((0, 0, -130, 0), callback = self.linehit)	#, flags = Lists.lOnlyOne) | ||||
| 		self.w.panes.gr.openbutton = W.Button((-80, 4, 0, 16), 'ViewÉ', self.openbuttonhit) | ||||
| 		self.w.panes.gr.openbutton = W.Button((-80, 4, 0, 16), 'ViewŠ', self.openbuttonhit) | ||||
| 		self.w.panes.gr.deletebutton = W.Button((-80, 28, 0, 16), 'Delete', self.deletebuttonhit) | ||||
| 		 | ||||
| 		self.w.bind('<close>', self.close) | ||||
|  | @ -880,7 +880,7 @@ def _getbottomframe(): | |||
| 
 | ||||
| def getdebugger(): | ||||
| 	if not __debug__: | ||||
| 		raise W.AlertError, "CanÕt debug in ÒOptimize bytecodeÓ mode.\r(see ÒDefault startup optionsÓ in EditPythonPreferences)" | ||||
| 		raise W.AlertError, "Can¹t debug in ³Optimize bytecode² mode.\r(see ³Default startup options² in EditPythonPreferences)" | ||||
| 	global _debugger | ||||
| 	if _debugger is None: | ||||
| 		_debugger = Debugger() | ||||
|  |  | |||
|  | @ -101,7 +101,7 @@ def listhit(self, isdbl = 1): | |||
| class Status: | ||||
| 	 | ||||
| 	def __init__(self): | ||||
| 		self.w = W.Dialog((440, 64), "SearchingÉ") | ||||
| 		self.w = W.Dialog((440, 64), "SearchingŠ") | ||||
| 		self.w.searching = W.TextBox((4, 4, -4, 16), "DevDev:PyPyDoc 1.5.1:ext:parseTupleAndKeywords.html") | ||||
| 		self.w.hits = W.TextBox((4, 24, -4, 16), "Hits: 0") | ||||
| 		self.w.canceltip = W.TextBox((4, 44, -4, 16), "Type cmd-period (.) to cancel.") | ||||
|  |  | |||
|  | @ -185,10 +185,10 @@ def setupwidgets(self, text): | |||
| 		self.linefield.bind("<click>", self.clicklinefield) | ||||
| 	 | ||||
| 	def makeoptionsmenu(self): | ||||
| 		menuitems = [('Font settingsÉ', self.domenu_fontsettings),  | ||||
| 		menuitems = [('Font settingsŠ', self.domenu_fontsettings),  | ||||
| 				('\0' + chr(self.run_as_main) + 'Run as __main__', self.domenu_toggle_run_as_main),  | ||||
| 				('Modularize', self.domenu_modularize), | ||||
| 				('Browse namespaceÉ', self.domenu_browsenamespace),  | ||||
| 				('Browse namespaceŠ', self.domenu_browsenamespace),  | ||||
| 				'-'] | ||||
| 		if self.profiling: | ||||
| 			menuitems = menuitems + [('Disable profiler', self.domenu_toggleprofiler)] | ||||
|  | @ -197,7 +197,7 @@ def makeoptionsmenu(self): | |||
| 		if self.editgroup.editor._debugger: | ||||
| 			menuitems = menuitems + [('Disable debugger', self.domenu_toggledebugger), | ||||
| 				('Clear breakpoints', self.domenu_clearbreakpoints), | ||||
| 				('Edit breakpointsÉ', self.domenu_editbreakpoints)] | ||||
| 				('Edit breakpointsŠ', self.domenu_editbreakpoints)] | ||||
| 		else: | ||||
| 			menuitems = menuitems + [('Enable debugger', self.domenu_toggledebugger)] | ||||
| 		self.editgroup.optionsmenu.set(menuitems) | ||||
|  | @ -236,7 +236,7 @@ def domenu_browsenamespace(self, *args): | |||
| 	def domenu_modularize(self, *args): | ||||
| 		modname = _filename_as_modname(self.title) | ||||
| 		if not modname: | ||||
| 			raise W.AlertError, 'CanÕt modularize Ò%sÓ' % self.title | ||||
| 			raise W.AlertError, 'Can¹t modularize ³%s²' % self.title | ||||
| 		run_as_main = self.run_as_main | ||||
| 		self.run_as_main = 0 | ||||
| 		self.run() | ||||
|  | @ -305,7 +305,7 @@ def close(self): | |||
| 			import EasyDialogs | ||||
| 			import Qd | ||||
| 			Qd.InitCursor() # XXX should be done by dialog | ||||
| 			save = EasyDialogs.AskYesNoCancel('Save window Ò%sÓ before closing?' % self.title, 1) | ||||
| 			save = EasyDialogs.AskYesNoCancel('Save window ³%s² before closing?' % self.title, 1) | ||||
| 			if save > 0: | ||||
| 				if self.domenu_save(): | ||||
| 					return 1 | ||||
|  | @ -365,7 +365,7 @@ def domenu_save_as_applet(self, *args): | |||
| 			import buildtools | ||||
| 		except ImportError: | ||||
| 			# only have buildtools in Python >= 1.5.2 | ||||
| 			raise W.AlertError, "ÒSave as AppletÓ is only supported in\rPython 1.5.2 and up." | ||||
| 			raise W.AlertError, "³Save as Applet² is only supported in\rPython 1.5.2 and up." | ||||
| 		 | ||||
| 		buildtools.DEBUG = 0	# ouch. | ||||
| 		 | ||||
|  | @ -468,23 +468,23 @@ def _runselection(self): | |||
| 					classname = string.split(string.strip(line[6:]))[0] | ||||
| 					classend = identifieRE_match(classname) | ||||
| 					if classend < 1: | ||||
| 						raise W.AlertError, 'CanÕt find a class.' | ||||
| 						raise W.AlertError, 'Can¹t find a class.' | ||||
| 					classname = classname[:classend] | ||||
| 					break | ||||
| 				elif line and line[0] not in '\t#': | ||||
| 					raise W.AlertError, 'CanÕt find a class.' | ||||
| 					raise W.AlertError, 'Can¹t find a class.' | ||||
| 			else: | ||||
| 				raise W.AlertError, 'CanÕt find a class.' | ||||
| 				raise W.AlertError, 'Can¹t find a class.' | ||||
| 			if globals.has_key(classname): | ||||
| 				locals = globals[classname].__dict__ | ||||
| 			else: | ||||
| 				raise W.AlertError, 'CanÕt find class Ò%sÓ.' % classname | ||||
| 				raise W.AlertError, 'Can¹t find class ³%s².' % classname | ||||
| 			# dedent to top level | ||||
| 			for i in range(len(lines)): | ||||
| 				lines[i] = lines[i][1:] | ||||
| 			pytext = string.join(lines, '\r') | ||||
| 		elif indent > 0: | ||||
| 			raise W.AlertError, 'CanÕt run indented code.' | ||||
| 			raise W.AlertError, 'Can¹t run indented code.' | ||||
| 		 | ||||
| 		# add "newlines" to fool compile/exec:  | ||||
| 		# now a traceback will give the right line number | ||||
|  | @ -674,7 +674,7 @@ def show(self): | |||
| 		self.buttons = [	("Find",		"cmdf",	 self.find),  | ||||
| 					("Replace",	     "cmdr",	 self.replace),  | ||||
| 					("Replace all",	 None,   self.replaceall),  | ||||
| 					("DonÕt find",  "cmdd",	 self.dont),  | ||||
| 					("Don¹t find",  "cmdd",	 self.dont),  | ||||
| 					("Cancel",	      "cmd.",	 self.cancel) | ||||
| 				] | ||||
| 		for i in range(len(self.buttons)): | ||||
|  | @ -683,7 +683,7 @@ def show(self): | |||
| 			self.w[title] = W.Button(bounds, title, callback) | ||||
| 			if shortcut: | ||||
| 				self.w.bind(shortcut, self.w[title].push) | ||||
| 		self.w.setdefaultbutton(self.w["DonÕt find"]) | ||||
| 		self.w.setdefaultbutton(self.w["Don¹t find"]) | ||||
| 		self.w.find.edit.bind("<key>", self.key) | ||||
| 		self.w.bind("<activate>", self.activate) | ||||
| 		self.w.bind("<close>", self.close) | ||||
|  | @ -716,11 +716,11 @@ def checkbuttons(self): | |||
| 			else: | ||||
| 				for title, cmd, call in self.buttons[:-2]: | ||||
| 					self.w[title].enable(0) | ||||
| 				self.w.setdefaultbutton(self.w["DonÕt find"]) | ||||
| 				self.w.setdefaultbutton(self.w["Don¹t find"]) | ||||
| 		else: | ||||
| 			for title, cmd, call in self.buttons[:-2]: | ||||
| 				self.w[title].enable(0) | ||||
| 			self.w.setdefaultbutton(self.w["DonÕt find"]) | ||||
| 			self.w.setdefaultbutton(self.w["Don¹t find"]) | ||||
| 	 | ||||
| 	def find(self): | ||||
| 		self.getparmsfromwindow() | ||||
|  | @ -1019,7 +1019,7 @@ def __init__(self): | |||
| 		self.template = "%s, %d point" | ||||
| 		self.fontsettings, self.tabsettings, self.windowsize = geteditorprefs() | ||||
| 		self.w = W.Dialog((328, 120), "Editor default settings") | ||||
| 		self.w.setfontbutton = W.Button((8, 8, 80, 16), "Set fontÉ", self.dofont) | ||||
| 		self.w.setfontbutton = W.Button((8, 8, 80, 16), "Set fontŠ", self.dofont) | ||||
| 		self.w.fonttext = W.TextBox((98, 10, -8, 14), self.template % (self.fontsettings[0], self.fontsettings[2])) | ||||
| 		 | ||||
| 		self.w.picksizebutton = W.Button((8, 50, 80, 16), "Front window", self.picksize) | ||||
|  |  | |||
|  | @ -38,13 +38,13 @@ def __init__(self): | |||
| 	def makeusermenus(self): | ||||
| 		m = Wapplication.Menu(self.menubar, "File") | ||||
| 		newitem = FrameWork.MenuItem(m, "New", "N", 'new') | ||||
| 		openitem = FrameWork.MenuItem(m, "OpenÉ", "O", 'open') | ||||
| 		openitem = FrameWork.MenuItem(m, "OpenŠ", "O", 'open') | ||||
| 		FrameWork.Separator(m) | ||||
| 		closeitem = FrameWork.MenuItem(m, "Close", "W", 'close') | ||||
| 		saveitem = FrameWork.MenuItem(m, "Save", "S", 'save') | ||||
| 		saveasitem = FrameWork.MenuItem(m, "Save asÉ", None, 'save_as') | ||||
| 		saveasitem = FrameWork.MenuItem(m, "Save asŠ", None, 'save_as') | ||||
| 		FrameWork.Separator(m) | ||||
| 		saveasappletitem = FrameWork.MenuItem(m, "Save as AppletÉ", None, 'save_as_applet') | ||||
| 		saveasappletitem = FrameWork.MenuItem(m, "Save as AppletŠ", None, 'save_as_applet') | ||||
| 		FrameWork.Separator(m) | ||||
| 		quititem = FrameWork.MenuItem(m, "Quit", "Q", 'quit') | ||||
| 		 | ||||
|  | @ -59,7 +59,7 @@ def makeusermenus(self): | |||
| 		selallitem = FrameWork.MenuItem(m, "Select all", "A", "selectall") | ||||
| 		sellineitem = FrameWork.MenuItem(m, "Select line", "L", "selectline") | ||||
| 		FrameWork.Separator(m) | ||||
| 		finditem = FrameWork.MenuItem(m, "FindÉ", "F", "find") | ||||
| 		finditem = FrameWork.MenuItem(m, "FindŠ", "F", "find") | ||||
| 		findagainitem = FrameWork.MenuItem(m, "Find again", 'G', "findnext") | ||||
| 		enterselitem = FrameWork.MenuItem(m, "Enter search string", "E", "entersearchstring") | ||||
| 		replaceitem = FrameWork.MenuItem(m, "Replace", None, "replace") | ||||
|  | @ -72,11 +72,11 @@ def makeusermenus(self): | |||
| 		runitem = FrameWork.MenuItem(m, "Run window", "R", 'run') | ||||
| 		runselitem = FrameWork.MenuItem(m, "Run selection", None, 'runselection') | ||||
| 		FrameWork.Separator(m) | ||||
| 		moditem = FrameWork.MenuItem(m, "Module browserÉ", "M", self.domenu_modulebrowser) | ||||
| 		moditem = FrameWork.MenuItem(m, "Module browserŠ", "M", self.domenu_modulebrowser) | ||||
| 		FrameWork.Separator(m) | ||||
| 		mm = FrameWork.SubMenu(m, "Preferences") | ||||
| 		FrameWork.MenuItem(mm, "Set Scripts folderÉ", None, self.do_setscriptsfolder) | ||||
| 		FrameWork.MenuItem(mm, "Editor default settingsÉ", None, self.do_editorprefs) | ||||
| 		FrameWork.MenuItem(mm, "Set Scripts folderŠ", None, self.do_setscriptsfolder) | ||||
| 		FrameWork.MenuItem(mm, "Editor default settingsŠ", None, self.do_editorprefs) | ||||
| 		 | ||||
| 		self.openwindowsmenu = Wapplication.Menu(self.menubar, 'Windows') | ||||
| 		self.makeopenwindowsmenu() | ||||
|  | @ -139,10 +139,10 @@ def opendoc(self, path): | |||
| 		if ftype == 'TEXT': | ||||
| 			self.openscript(path) | ||||
| 		else: | ||||
| 			W.Message("CanÕt open file of type '%s'." % ftype) | ||||
| 			W.Message("Can¹t open file of type '%s'." % ftype) | ||||
| 	 | ||||
| 	def getabouttext(self): | ||||
| 		return "About Python IDEÉ" | ||||
| 		return "About Python IDEŠ" | ||||
| 	 | ||||
| 	def do_about(self, id, item, window, event): | ||||
| 		Splash.about() | ||||
|  |  | |||
|  | @ -70,7 +70,7 @@ def my__import__(name, globals=None, locals=None, fromlist=None): | |||
| 
 | ||||
| _keepsplashscreenopen = 0 | ||||
| 
 | ||||
| abouttext1 = """The Python Integrated Developement Environment for the Macintoshª | ||||
| abouttext1 = """The Python Integrated Developement Environment for the Macintosh<EFBFBD> | ||||
| Version: %s | ||||
| Copyright 1997-98 Just van Rossum, Letterror. <just@letterror.com> | ||||
| 
 | ||||
|  | @ -81,11 +81,11 @@ def my__import__(name, globals=None, locals=None, fromlist=None): | |||
| See: <http://www.python.org/> for information and documentation.""" | ||||
| 
 | ||||
| flauwekul = [	'Goodday, Bruce.',  | ||||
| 			'WhatÕs new?',  | ||||
| 			'What¹s new?',  | ||||
| 			'Nudge, nudge, say no more!',  | ||||
| 			'No, no sir, itÕs not dead. ItÕs resting.', | ||||
| 			'No, no sir, it¹s not dead. It¹s resting.', | ||||
| 			'Albatros!', | ||||
| 			'ItÕs . . .', | ||||
| 			'It¹s . . .', | ||||
| 			'Is your name not Bruce, then?', | ||||
| 			"""But Mr F.G. Superman has a secret identity . . .  | ||||
| when trouble strikes at any time . . .  | ||||
|  |  | |||
|  | @ -323,18 +323,18 @@ def openscript(self, filename, lineno=None, charoffset=0, modname=""): | |||
| 				# XXX and that's the last thing we want here. | ||||
| 				f, filename, (suff, mode, dummy) = imp.find_module(modname) | ||||
| 			except ImportError: | ||||
| 				raise W.AlertError, "CanÕt find file for Ò%sÓ" % modname | ||||
| 				raise W.AlertError, "Can¹t find file for ³%s²" % modname | ||||
| 			else: | ||||
| 				if not f: | ||||
| 					raise W.AlertError, "CanÕt find file for Ò%sÓ" % modname | ||||
| 					raise W.AlertError, "Can¹t find file for ³%s²" % modname | ||||
| 				f.close() | ||||
| 			if suff == '.py': | ||||
| 				self.openscript(filename, lineno, charoffset) | ||||
| 				return | ||||
| 			else: | ||||
| 				raise W.AlertError, "CanÕt find file for Ò%sÓ" % modname | ||||
| 				raise W.AlertError, "Can¹t find file for ³%s²" % modname | ||||
| 		else: | ||||
| 			raise W.AlertError, "CanÕt find file Ô%sÕ" % filename | ||||
| 			raise W.AlertError, "Can¹t find file Œ%s¹" % filename | ||||
| 		if lineno is not None: | ||||
| 			editor.selectline(lineno, charoffset) | ||||
| 		return editor | ||||
|  |  | |||
|  | @ -862,7 +862,7 @@ def showbreakpoints(self, onoff): | |||
| 			if onoff: | ||||
| 				if not __debug__: | ||||
| 					import W | ||||
| 					raise W.AlertError, "CanÕt debug in ÒOptimize bytecodeÓ mode.\r(see ÒDefault startup optionsÓ in EditPythonPreferences)" | ||||
| 					raise W.AlertError, "Can¹t debug in ³Optimize bytecode² mode.\r(see ³Default startup options² in EditPythonPreferences)" | ||||
| 				import PyDebugger | ||||
| 				self._debugger = PyDebugger.getdebugger() | ||||
| 				self._debugger.register_editor(self, self.file) | ||||
|  |  | |||
|  | @ -57,7 +57,7 @@ def syntaxerror(self): | |||
| 			filename = os.path.split(filename)[1] | ||||
| 		if lineno: | ||||
| 			charno = charno - 1 | ||||
| 			text = str(value) + '\rFile: "' + str(filename) + '", line ' + str(lineno) + '\r\r' + line[:charno] + "¥" + line[charno:-1] | ||||
| 			text = str(value) + '\rFile: "' + str(filename) + '", line ' + str(lineno) + '\r\r' + line[:charno] + "€" + line[charno:-1] | ||||
| 		else: | ||||
| 			text = str(value) + '\rFile: "' + str(filename) + '"' | ||||
| 		self.syntaxdialog = W.ModalDialog((360, 120), "Syntax Error") | ||||
|  | @ -123,10 +123,10 @@ def setupwidgets(self): | |||
| 		self.w.editbutton = W.Button((10, -30, 60, 16), "Edit", self.edit) | ||||
| 		self.w.editbutton.enable(0) | ||||
| 		 | ||||
| 		self.w.browselocalsbutton = W.Button((80, -30, 100, 16), "Browse localsÉ", self.browselocals) | ||||
| 		self.w.browselocalsbutton = W.Button((80, -30, 100, 16), "Browse localsŠ", self.browselocals) | ||||
| 		self.w.browselocalsbutton.enable(0) | ||||
| 		 | ||||
| 		self.w.postmortembutton = W.Button((190, -30, 100, 16), "Post mortemÉ", self.postmortem) | ||||
| 		self.w.postmortembutton = W.Button((190, -30, 100, 16), "Post mortemŠ", self.postmortem) | ||||
| 		 | ||||
| 		self.w.setdefaultbutton(self.w.editbutton) | ||||
| 		self.w.bind("cmdb", self.w.browselocalsbutton.push) | ||||
|  |  | |||
|  | @ -556,7 +556,7 @@ def FrontWindowInsert(stuff): | |||
| 				pass | ||||
| 	import EasyDialogs | ||||
| 	if EasyDialogs.AskYesNoCancel( | ||||
| 			"CanÕt find window or widget to insert text into; copy to clipboard instead?",  | ||||
| 			"Can¹t find window or widget to insert text into; copy to clipboard instead?",  | ||||
| 			1) == 1: | ||||
| 		import Scrap | ||||
| 		Scrap.ZeroScrap() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Just van Rossum
						Just van Rossum