outfile.write("""uses wingraph;
var
gd,gm : smallint;
begin;
gd:=Detect;
InitGraph(gd,gm,'');
//<your code here>
repeat until CloseGraphRequest; //this waits for close button to be clicked
CloseGraph;
end.""")
outfile.close()
I also noticed a number of years ago you were looking for a maintainer for bloodshed pascal.... Does that include the banner space and a free disk with that gnu pascal thing that I haven't been able to install on it (I got rid of the errors but it ignores me).. I would like to say that I like gui builders but the lazerus thing isn't my cup of tea..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
(this is the script (c) 2007 eric dexter )
import sys
outfile = open(sys.argv[1],'w')
//need to use the command line
outfile.write("""uses wingraph;
var
gd,gm : smallint;
begin;
gd:=Detect;
InitGraph(gd,gm,'');
//<your code here>
repeat until CloseGraphRequest; //this waits for close button to be clicked
CloseGraph;
end.""")
outfile.close()
I also noticed a number of years ago you were looking for a maintainer for bloodshed pascal.... Does that include the banner space and a free disk with that gnu pascal thing that I haven't been able to install on it (I got rid of the errors but it ignores me).. I would like to say that I like gui builders but the lazerus thing isn't my cup of tea..
I just want to mention the code is in python but there are python to various language converters for this sort of thing..