以下代碼內容是關於python從列表中選擇的對話框定義的代碼,應該能對碼農們有所幫助。python
dlg = wx.SingleChoiceDialog(None,’What version of Python are you using?’, ’Single Choice’,[‘1.5.2’, ’2.0’, ’2.1.3’, ’2.2’, ’2.3.1’]) if dlg.ShowModal() == wx.ID_OK: response = dlg.GetStringSelection()