Whitespace normalization, via reindent.py.

This commit is contained in:
Tim Peters 2004-07-18 06:16:08 +00:00
parent e6ddc8b20b
commit 182b5aca27
453 changed files with 31318 additions and 31452 deletions

View file

@ -15,27 +15,26 @@ _signature = None
AlertError = 'AlertError'
def setapplication(app, sig):
global _application, _signature
_application = app
_signature = sig
global _application, _signature
_application = app
_signature = sig
def getapplication():
if _application is None:
raise WidgetsError, 'W not properly initialized: unknown Application'
return _application
if _application is None:
raise WidgetsError, 'W not properly initialized: unknown Application'
return _application
def getdefaultfont():
prefs = getapplication().getprefs()
if not prefs.defaultfont:
prefs.defaultfont = ("Geneva", 0, 10, (0, 0, 0))
return prefs.defaultfont
prefs = getapplication().getprefs()
if not prefs.defaultfont:
prefs.defaultfont = ("Geneva", 0, 10, (0, 0, 0))
return prefs.defaultfont
def Message(text):
import EasyDialogs, string
from Carbon import Qd
Qd.InitCursor()
text = string.replace(text, "\n", "\r")
if not text:
text = '<Alert text not specified>'
EasyDialogs.Message(text)
import EasyDialogs, string
from Carbon import Qd
Qd.InitCursor()
text = string.replace(text, "\n", "\r")
if not text:
text = '<Alert text not specified>'
EasyDialogs.Message(text)