summaryrefslogtreecommitdiff
path: root/Mac/Tools/IDE/W.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Tools/IDE/W.py')
-rw-r--r--Mac/Tools/IDE/W.py35
1 files changed, 17 insertions, 18 deletions
diff --git a/Mac/Tools/IDE/W.py b/Mac/Tools/IDE/W.py
index 397b2117c1..3ddeb76f00 100644
--- a/Mac/Tools/IDE/W.py
+++ b/Mac/Tools/IDE/W.py
@@ -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)