mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Whitespace normalization, via reindent.py.
This commit is contained in:
parent
e6ddc8b20b
commit
182b5aca27
453 changed files with 31318 additions and 31452 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue