1 # Function to display a message and wait for the user to hit OK.
2 # This uses a DLOG resource with ID=256 which is part of the standard
4 # The ID can be overridden by passing a second parameter.
13 what
, message
, when
, where
, modifiers
= event
14 if what
== keyDown
and modifiers
& cmdKey
and \
15 string
.lower(chr(message
& charCodeMask
)) == 'o':
18 def message(str = "Hello, world!", id = ID
):
19 d
= GetNewDialog(id, -1)
20 tp
, h
, rect
= d
.GetDItem(2)
29 if __name__
== '__main__':