how to create nested classes dynamically

2009-11-03 Thread gopal mishra
I have class structure as below. How can I create the following nested class and its properties dynamically. class AA(object): class BB(object): def setBB1(self, value): ##some code def getBB1(self): bb1 = #somecode return bb1

How to save clipboard data as bmp file

2009-04-21 Thread gopal mishra
I have used ImageGrab.grabclipboard() to get the clipboard image data, it returns None. This function only supports if the clipboard data format is CF_BITMAP. Is there any way to save clipboard data format CF_ENHMETAFILE to bitmap file using win32 programming. -- Gopal I am trying to save my

How save clipboard data as bmp file

2009-04-20 Thread gopal mishra
Hi, I am trying to save my clipboard data (format is CF_ENHMETAFILE) as BitMap file (.BMP). Can any on suggest how to do this. Thanks Regards, Gopal -- http://mail.python.org/mailman/listinfo/python-list

OMPC- m-script to python script convertor

2009-03-16 Thread gopal mishra
Hi, I am trying to convert Matlab script to python script using OMPC.( http://ompc.juricap.com/ ) My matlab code is (.m file) Npts=100; R=0.5; X=[0:1/Npts:1]'; Y=[0:0.01:1]'; for i=1:Npts+1 if(X(i) = .5) Ytop(i)=1.0; Ybot(i)=0.0; else

Install NumPy in python 2.6

2009-03-13 Thread gopal mishra
Hi, I am trying to install SciPy and NumPy in Python 2.6 (OS - Win XP). http://downloads.sourceforge.net/numpy/numpy-1.2.1.tar.gz http://downloads.sourceforge.net/scipy/scipy-0.7.0.tar.gz While installing numpy It gives following installation error. Running from numpy source directory.

How to get text from a surface

2009-01-27 Thread gopal mishra
Hi, I am loading an image into pygame. i am trying to get the text from the surface. I used pyTesser to read the text from a surface/image but if the font size of the text is less then 16, it doesn't give me back the correct text from the surface. Is there any other way to get the text

RE: problem in implementing multiprocessing

2009-01-18 Thread gopal mishra
] Sent: Saturday, January 17, 2009 10:37 AM To: gopal mishra Cc: python-list@python.org Subject: Re: problem in implementing multiprocessing On Fri, Jan 16, 2009 at 7:16 PM, gopal mishra gop...@infotechsw.com wrote: I create two heavy objects sequentially without using multipleProcessing

RE: problem in implementing multiprocessing

2009-01-16 Thread gopal mishra
could be the sollution. my system configuration: dual-core processor winXP python2.6.1 gopal mishra wrote: Hello, I am trying to implement the multiprocessing in my application to take advantage of multiple cores. I have created two Separate process something like this. que = Queue

problem in implementing multiprocessing

2009-01-15 Thread gopal mishra
Hello, I am trying to implement the multiprocessing in my application to take advantage of multiple cores. I have created two Separate process something like this. que = Queue Process(target = getData, args=(que , section, MdbFile,)).start() Process(target = getData, args=(que , section,

cPickle

2008-09-04 Thread gopal mishra
I have 3 objects and want to save in one pickle file. I used cPickle to dump 3 objects in a pkl file i.e cPickle.dump(object1, fileobject, -1) cPickle.dump(object2, fileobject, -1) cPickle.dump(object3, fileobject, -1) I have changed the 3rd object

How to set directory in save as combo box

2008-06-12 Thread gopal mishra
- From: Tim Golden [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 1:22 PM Cc: python-list@python.org Subject: Re: How to set directory in save as combo box gopal mishra wrote: In 'save as' dialog of window application, I am trying to set the path in 'save in' combo box using python

How to set directory in save as combo box

2008-06-11 Thread gopal mishra
Hi, In 'save as' dialog of window application, I am trying to set the path in 'save in' combo box using python win32 programming. How we can set the directory in the 'save in' combo box. Thanks, Gopal -- http://mail.python.org/mailman/listinfo/python-list