mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Set default item for dialog
This commit is contained in:
parent
76c79e9ba8
commit
6c6ad83e54
1 changed files with 1 additions and 0 deletions
|
@ -289,6 +289,7 @@ def message(str, id = 256):
|
|||
return
|
||||
tp, h, rect = d.GetDialogItem(2)
|
||||
SetDialogItemText(h, str)
|
||||
d.SetDialogDefaultItem(1)
|
||||
while 1:
|
||||
n = ModalDialog(None)
|
||||
if n == 1: break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue