mirror of
https://github.com/python/cpython.git
synced 2025-10-25 15:58:57 +00:00
Initial revision
This commit is contained in:
parent
7cc5735ef2
commit
cb5704e6a8
36 changed files with 8306 additions and 0 deletions
33
Mac/Contrib/PyIDE-src/IDELib/Widgets/W.py
Normal file
33
Mac/Contrib/PyIDE-src/IDELib/Widgets/W.py
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
"""Widgets for the Macintosh. Built on top of FrameWork"""
|
||||
|
||||
__version__ = "0.1"
|
||||
|
||||
from Wbase import *
|
||||
from Wcontrols import *
|
||||
from Wtext import *
|
||||
from Wlist import *
|
||||
from Wwindows import *
|
||||
from Wmenus import *
|
||||
|
||||
_application = None
|
||||
_signature = None
|
||||
|
||||
AlertError = 'AlertError'
|
||||
|
||||
def setapplication(app, sig):
|
||||
global _application, _signature
|
||||
_application = app
|
||||
_signature = sig
|
||||
|
||||
def getapplication():
|
||||
if _application is None:
|
||||
raise WidgetsError, 'W not properly initialized: unknown Application'
|
||||
return _application
|
||||
|
||||
def Message(text):
|
||||
import EasyDialogs, Qd
|
||||
Qd.InitCursor()
|
||||
if text:
|
||||
EasyDialogs.Message(text)
|
||||
else:
|
||||
EasyDialogs.Message('<Alert text not specified>')
|
||||
Loading…
Add table
Add a link
Reference in a new issue