mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Trying again to check it in. Changes to:
- Use Universal Headers as input - Change addpack calls to not depend on Guido's disklayout - Checkge testprograms to use new names for some functions
This commit is contained in:
parent
c7cfb95559
commit
ae8a68f40c
16 changed files with 466 additions and 284 deletions
|
|
@ -3,6 +3,9 @@
|
|||
# Python library.
|
||||
# The ID can be overridden by passing a second parameter.
|
||||
|
||||
import addpack
|
||||
addpack.addpack(':Tools:bgen:evt')
|
||||
|
||||
from Dlg import *
|
||||
from Events import *
|
||||
import string
|
||||
|
|
@ -17,8 +20,8 @@ def f(d, event):
|
|||
|
||||
def message(str = "Hello, world!", id = ID):
|
||||
d = GetNewDialog(id, -1)
|
||||
tp, h, rect = d.GetDItem(2)
|
||||
SetIText(h, str)
|
||||
tp, h, rect = d.GetDialogItem(2)
|
||||
SetDialogItemText(h, str)
|
||||
while 1:
|
||||
n = ModalDialog(f)
|
||||
if n == 1: break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue