Temporary text for multiple entries

2020-08-21 Thread Prashant Aggarwal
I am working to make a form where I have added multiple entries. I wish to add temporary text on all of them, as the text to be deleted when clicked and to inserted again when focused out. I have done with the single entry but not able to find a solution for multiple entries.Kindly suggest me a

post init call

2012-06-18 Thread Prashant
class Shape(object): def __init__(self, shapename): self.shapename = shapename def update(self): print "update" class ColoredShape(Shape): def __init__(self, color): Shape.__init__(self, color) self.color = color print 1

Another non blocking method in thread

2012-06-10 Thread Prashant
know much about threading event and lock and if they can help me here. Any pointers? Prashant -- http://mail.python.org/mailman/listinfo/python-list

stop thread from outside 'run'

2012-06-05 Thread Prashant
Hi, I am using tornado web socket server to communicate between python(server) and browser(client). To mimic the behavior of sending data to client and get results back, I am using threaded approach: class JobThread(threading.Thread): "" def __init__(self, target): ""

Volunteer help with porting

2010-09-07 Thread Prashant Kumar
Hi everyone, My name is Prashant Kumar and I wish to contribute to the Python development process by helping convert certain existing python over to python3k. Is there anyway I could obtain a list of libraries which need to be ported over to python3k, sorted by importance(by importance i mean

subtype and super method. How to?

2008-07-16 Thread Prashant Saxena
import sys class Attribute(object):     """     Common attributes and methods for custom types     """     __slots__ = []          def __init__(self, name=None, type=None, range=(0,1)):     self.__name = name     self.__type = type     self.__range = range          #Read only attribute

Custom 'Float' class. Am I right here?

2008-07-16 Thread Prashant Saxena
import sys class Float(float): """ Custom float datatype with addtional attributes. """ def __new__(self, value=0.0, #default value name='', # string range=(0.0, 1.0) # tuple )

insert python script in current script

2008-04-16 Thread Prashant
I was wondering is there any way to do this: I have written a class in python and __init__ goes like this: def __init__(self): self.name = 'jack' self.age = 50 import data now here there is data.py in the same directory and contents are like: self.address = 'your address' self.status = 'si

Re: ImportError: No module named getopt

2006-11-23 Thread prashant
thanks a lot that helped... Fredrik Lundh wrote: > "prashant" wrote: > > > I am actually using Cygwin to run a python script. > > I have python 2.5 installed. But when i ran the command mentioned by > > you... I see that it is looking in the wrong directories.

Re: ImportError: No module named getopt

2006-11-23 Thread prashant
Thanks for the reply, I am actually using Cygwin to run a python script. I have python 2.5 installed. But when i ran the command mentioned by you... I see that it is looking in the wrong directories... how can i change these look up directories? Fredrik Lundh wrote: > "prashant" wro

ImportError: No module named getopt

2006-11-23 Thread prashant
I am running a python script which has the line import getopt, sys, os, re, string And i get the error ImportError: No module named getopt Could you please point out a possible solution for this? -- http://mail.python.org/mailman/listinfo/python-list