Stand alone dialog : SingleChoiceDialog : WxPython PYTHON TUTORIALS


PYTHON TUTORIALS » WxPython » SingleChoiceDialog »

 

Stand alone dialog


Stand alone dialog
import wx

app = wx.PySimpleApp()
choices = ["Alpha""Baker""Charlie""Delta"]
dialog = wx.SingleChoiceDialog(None, "Pick A Word""Choices",choices)
if dialog.ShowModal() == wx.ID_OK:
    print "You selected: %sn" % dialog.GetStringSelection()

dialog.Destroy()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo WxPython
» SingleChoiceDialog