0

From console I can run

import os, sys, pygame  
print ''
print 7
import pygame, sys
from pygame.locals import*
pygame.init()
visor=pygame.display.set_mode((400,400),0,32)

then this OPEN NEW window of grafic.

But when I run from BROWSER, only show the string 7

How I can open the same window ?

I no like run from HTTP remote, oly in the same PC, in LOCAL !

Thanks

XHtml
  • 21
  • 5
  • how do you run this from browser? – Bartlomiej Lewandowski Feb 22 '14 at 11:15
  • Thanks. I run python from Apache (HTTP) in machine LOCAL (cgi). I no like run from WEB ( I know pygame no run by web ). But becouse I am in the same PC, I know surely yes is possible open the WINDOW of PYGAME, but I unknow how. – XHtml Feb 22 '14 at 12:05
  • It doesn't matter if Apache is on local machine or remote server - it is still web server. Beside you can't use pygame on web server because server send to brower only HTML/JS/CSS/Flash/Images and PyGame doesn't generate HTML/JS/CSS/Flash/Images. You can only put ZIP with PyGame to download. – furas Feb 25 '14 at 02:25

0 Answers0