Re: [Tutor] Python with HTML

2012-01-29 Thread Evert Rol
> hi everyone, > > I want to make a web page which has to include some python script and html > tags as well, am not getting how to do that . > I searched some articles but cant understand them . > is there anything like linking an external html file into python script ? > > Can u please help f

Re: [Tutor] Python with HTML

2012-01-29 Thread ian douglas
If you're hoping for something like PHP that can be parsed inline with html, you're out of luck. It's also bad design to mix business logic with your presentation layer. You might want to look into some frameworks like django to help you along. On Jan 28, 2012 2:04 AM, "t4 techno" wrote: > hi ev

Re: [Tutor] Python with HTML

2012-01-29 Thread Steven D'Aprano
Evert Rol wrote: hi everyone, I want to make a web page which has to include some python script and html tags as well, am not getting how to do that . I searched some articles but cant understand them . is there anything like linking an external html file into python script ? Can u please hel

Re: [Tutor] Python with HTML

2012-01-29 Thread P.
> > I want to make a web page which has to include some python script and html >> tags as well, am not getting how to do that . >> > ** Hi, Maybe a quick and small solution is here : http://karrigell.sourceforge.net/en/index.html It doesn't seem to be a very living project, but it can be a solutio

Re: [Tutor] Python with HTML

2012-01-29 Thread Stefan Behnel
t4 techno, 28.01.2012 11:02: > I want to make a web page which has to include some python script and html > tags as well, am not getting how to do that . > I searched some articles but cant understand them . > is there anything like linking an external html file into python script ? > > Can u plea

[Tutor] Deleting an object

2012-01-29 Thread George Nyoro
Hi all, Last time I tried to post a question regarding this, I was asked to clarify. Okay so here it is. There is a class called Table and objects are just tables, you know, matrices, holding different types of data. Thing is, I want to provide a method where one can delete the object and t

Re: [Tutor] Deleting an object

2012-01-29 Thread Hugo Arts
On Sun, Jan 29, 2012 at 4:14 PM, George Nyoro wrote: > Hi all, > >    Last time I tried to post a question regarding this, I was asked to > clarify. Okay so here it is. There is a class called Table and objects are > just tables, you know, matrices, holding different types of data. Thing is, >

Re: [Tutor] Deleting an object

2012-01-29 Thread Alexander
On Sun, Jan 29, 2012 at 10:14 AM, George Nyoro wrote: > Hi all, >    Last time I tried to post a question regarding this, I was asked to > clarify. Okay so here it is. There is a class called Table and objects are > just tables, you know, matrices, holding different types of data. Thing is, >

Re: [Tutor] Deleting an object

2012-01-29 Thread Steven D'Aprano
George Nyoro wrote: class Table: def delete_this(self): #code to delete this object or assign it null or None pass def do_something(self): pass x=Table() x.delete_this() #at this point, I want such that if I try to use x I get some sort of error e.g. x.do_something() #Error: x is definitely

Re: [Tutor] Deleting an object

2012-01-29 Thread Peter Otten
George Nyoro wrote: >Last time I tried to post a question regarding this, I was asked to > clarify. Okay so here it is. There is a class called Table and objects are > just tables, you know, matrices, holding different types of data. Thing > is, I want to provide a method where one can del

Re: [Tutor] Deleting an object

2012-01-29 Thread Alan Gauld
On 29/01/12 15:14, George Nyoro wrote: data. Thing is, I want to provide a method where one can delete the object and then if the user tries using a variable to access a certain method or attributes, he gets an error. Let me give an example; I assume you know about the built in del() function

Re: [Tutor] Socket Programming

2012-01-29 Thread Navneet
On 1/27/2012 10:13 PM, Steven D'Aprano wrote: Navneet wrote: One more thing I want to add here is, I am trying to create the GUI based chat server.(Attached the programs.) Please do not send large chunks of code like this, unless asked. Instead, you should try to produce a minimal example t

Re: [Tutor] Why do you have to close files?

2012-01-29 Thread amt
All the replies were very helpful! Thank you very much for helping me out! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] loop until a keypress

2012-01-29 Thread Surya K
I want to run code until a "enter" is pressed. Well, it shouldn't wait for the user to enter "enter" This is my code: import msvcrtchr = 0while chr != 'q': print "my code", if msvcrt.kbhit(): chr = msvcrt.getch() This isn't working the way I wanted. When ever I press enter, the

[Tutor] Help Glade Tutorial.

2012-01-29 Thread Ganesh Kumar
Hi Guys, I am searching for a Glade tutorial, on how to create simple projects Glade with python 1) design a simple interface in glade 2) use the glade interface to write some really simple application with python. I search in goggled i didn't get good tutorials, guide me guys How to start with

Re: [Tutor] Help Glade Tutorial.

2012-01-29 Thread Chris Fuller
Which ones did you look at, and why did you not like them? Keep in mind that Glade is an interface builder, and hasn't got anything much to do with the target language, other than requiring there be a libglade library to read the XML files. I actually got started with some articles in Linux J