def getNumWondersVictory(self):
"Brings up a popup allowing the active player to choose the number of wonders which constitutes victory"
iPlayerID = gc.getPlayer(CyGame().getActivePlayer()).getID()
popupInfo = CyPopupInfo()
popupInfo.setButtonPopupType(ButtonPopupTypes.BUTTONPOPUP_PYTHON)
popupInfo.setText("Choose the number of Wonders needed for a Wonder Victory")
popupInfo.setOnClickedPythonCallback("wondersVictoryOnClickedCallback")
#set the range parameters
#for example:
iStart = 10
iStop = 20
iStep = 2
for i in range(iStart,iStop,iStep):
strButtonText = str(i)
popupInfo.addPythonButton(strButtonText, "")
#pass the range parameters to the callback
popupInfo.setData1(iStart)
popupInfo.setData2(iStop)
popupInfo.setData3(iStep)
#show the popup
popupInfo.addPopup(iPlayerID)