[Tutor] using python to write web page

2011-06-15 Thread Michael bridges
i would like to use python to write a web page like writing an html file that is displayed in a browser without having to run a server. found a few options, but need to have server running. https://skulpt.googlecode.com/hg/skulpt gives 404 error ___

Re: [Tutor] floats

2011-06-07 Thread Michael bridges
sday, June 7, 2011, 1:16 AM > > "Michael bridges" > wrote > > > i want to 10 / 1000 and get 0.01 not 0 > > if 1000 is made 1000.00 then 0.01 is printed > > but that gives 500 / 1000.00 is 0.5 not 0.50 > > > > can someone till me how to get

[Tutor] floats

2011-06-06 Thread Michael bridges
i saw it somewhere, but where? i want to 10 / 1000 and get 0.01 not 0 if 1000 is made 1000.00 then 0.01 is printed but that gives 500 / 1000.00 is 0.5 not 0.50 i might be thinking C# not python. can someone till me how to get a two decimal precision every time? _

Re: [Tutor] No module named player_data

2011-06-05 Thread Michael bridges
simple file was named __ init __.py not __init__.py restored from recycle bin showed the error thanks for your help --- On Sun, 6/5/11, Alexandre Conrad wrote: > From: Alexandre Conrad > Subject: Re: [Tutor] No module named player_data > To: "Michael bridges" > Cc: T

Re: [Tutor] No module named player_data

2011-06-05 Thread Michael bridges
om: Alexandre Conrad > Subject: Re: [Tutor] No module named player_data > To: "Michael bridges" > Cc: Tutor@python.org > Date: Sunday, June 5, 2011, 7:58 PM > 2011/6/5 Michael bridges : > > one of the things i deleted was __init__.py & > __init__.pyc [thought i

Re: [Tutor] No module named player_data

2011-06-05 Thread Michael bridges
ables] [no classes, no functions, just variables] --- On Sun, 6/5/11, Alexandre Conrad wrote: > From: Alexandre Conrad > Subject: Re: [Tutor] No module named player_data > To: "Michael bridges" > Cc: Tutor@python.org > Date: Sunday, June 5, 2011, 7:11 PM > 2011/6/5 Mich

Re: [Tutor] No module named player_data

2011-06-05 Thread Michael bridges
> Subject: Re: [Tutor] No module named player_data > To: "Michael bridges" > Cc: Tutor@python.org > Date: Sunday, June 5, 2011, 7:11 PM > 2011/6/5 Michael bridges : > > why does this happen? > > > > server [folder] > >       player_data [folder]

[Tutor] No module named player_data

2011-06-05 Thread Michael bridges
why does this happen? server [folder] player_data [folder] server.py Traceback (most recent call last): File "C:\Users\MySelf\Program\game_stuff\Game_28_02_11\Servers\server_client_begining\server.py", line 3, in from player_data import PlayerArmy ImportError: No module nam

[Tutor] Making a simple web server in Python

2011-05-30 Thread Michael bridges
when running code from http://fragments.turtlemeat.com/pythonwebserver.php: [putting http://localhost:81/index.html in broswer] this error happens: >>> Traceback (most recent call last): File "C:\Users\MySelf\Program\game_stuff\Python_Server_code_and_test\pythonweb\webserver.py", line 65, in