ww2commander
Emperor
Ok, I just started taking my first baby steps into the world of python and have already come to an embarressing dead-end
I am trying to work out how to get popup boxes and have followed the tutorial from this forum. The only problem is that the modified snippet of code I tested works except I dont get an 'OK/close' button to click on....it just shows the popup and no way to get rid of it.
Please point out what I need to add to get a simple 'Hello world' popup that I can click ok to.
Please be mindful that I am just learning

I am trying to work out how to get popup boxes and have followed the tutorial from this forum. The only problem is that the modified snippet of code I tested works except I dont get an 'OK/close' button to click on....it just shows the popup and no way to get rid of it.
Please point out what I need to add to get a simple 'Hello world' popup that I can click ok to.
Spoiler :
PHP:
def onGameStart(self, argsList):
for iPlayer in range(gc.getMAX_PLAYERS()):
player = gc.getPlayer(iPlayer)
if (player.isAlive() and player.isHuman()):
popupInfo = CyPopupInfo()
popupInfo.setButtonPopupType(ButtonPopupTypes.BUTTONPOPUP_PYTHON)
popupInfo.setText('Hello world')
popupInfo.addPopup(iPlayer)
Please be mindful that I am just learning
