这是我的代码:
def Dialog(message='', parent=None, value=''):
dlg = wx.TextEntryDialog(parent, message, value=value)
dlg.ShowModal()
result = dlg.GetValue()
dlg.Destroy()
return result
因此,如果我需要将parent
参数值设置为“记事本” ...我应该放什么?字符串?
请注意,我已经创建了wx.App对象!