def strdlgcb(recv, send, sig, data): dlg = gi.Dialog( handle=send) # send is a raw int64 handle -- use it to initialize if sig == gi.DialogAccepted: val = gi.StringPromptDialogValue(dlg) print("got string value: ", val)
def strdlgcb(recv, send, sig, data): dlg = gi.Dialog(handle=send) if sig == gi.DialogAccepted: val = gi.StringPromptDialogValue(dlg) print("got string value: ", val)