[Tutor] Removing certain sequences from a string list elements

2012-01-09 Thread Varsha Purohit
Hello, I have a simple python program where I am comparing two log files and I am storing the differences in a list. I am programming in python after a long time so may be I might have not written something very efficient. Please let me know what alternate solution I can apply for my program. I a

[Tutor] [tutor] PyGame tutorials

2008-03-15 Thread Varsha Purohit
?? thanks, -- Varsha Purohit ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] [tutor] Finding image statistics

2008-03-09 Thread Varsha Purohit
them and multiply the cumulative result with cellsize On Sun, Mar 9, 2008 at 6:41 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > Varsha Purohit wrote: > > Hello All, > > I had posted this question in this community. I have a trouble. > > Actually

Re: [Tutor] [tutor] Finding image statistics

2008-03-09 Thread Varsha Purohit
king can anyone tell me what i am doing wrong here ??? On Mon, Mar 3, 2008 at 12:55 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > Varsha Purohit wrote: > > Yeahh so by doing this i am counting only the difference part since we > > have grayscaled the image and assuming

Re: [Tutor] [tutor] Finding image statistics

2008-03-03 Thread Varsha Purohit
number of pixels developed like that... sounds interesting .. thanks for throwing light for me in right direction On Sun, Mar 2, 2008 at 4:45 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > Varsha Purohit wrote: > > I am getting this list as an output > > > > [268541.0, 2

Re: [Tutor] [tutor] Finding image statistics

2008-03-02 Thread Varsha Purohit
xels ... thanks, On Sun, Mar 2, 2008 at 9:48 AM, Varsha Purohit <[EMAIL PROTECTED]> wrote: > Yes i am getting this but i was confused why i am getting 3 values for > count, extrema.. and dats y i couldn't figure out how to find area of those > pixels.. > >

Re: [Tutor] [tutor] Finding image statistics

2008-03-02 Thread Varsha Purohit
Yes i am getting this but i was confused why i am getting 3 values for count, extrema.. and dats y i couldn't figure out how to find area of those pixels.. On Sun, Mar 2, 2008 at 9:02 AM, Kent Johnson <[EMAIL PROTECTED]> wrote: > Varsha Purohit wrote: > > of this module

[Tutor] [tutor] Finding image statistics

2008-03-02 Thread Varsha Purohit
etween two images, getting sum of all pixels and area of pixels that are in that image etc. please guide me regarding this... thanks, -- Varsha Purohit, Graduate Student ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] [tutor] creating list of tuples

2008-02-25 Thread Varsha Purohit
, Feb 25, 2008 at 6:52 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > Varsha Purohit wrote: > > Hello all, > >In my application i have to create a list of tuples. I have a for > > loop which will create (x,y) tuple each time it iterates, and i ahve to > >

[Tutor] [tutor] creating list of tuples

2008-02-25 Thread Varsha Purohit
Hello all, In my application i have to create a list of tuples. I have a for loop which will create (x,y) tuple each time it iterates, and i ahve to store each tuple in a list like list1= [(x1,y1), (x2,y2).] any ideas how to do that ??? thanks, -- Varsha Purohit, Graduate Student

[Tutor] [tutor] Question on multithreading

2008-02-23 Thread Varsha Purohit
): GuiScript().Stop() RunScript().Stop() self.Destroy() but seems stop() method is not existing... can anybody guide me pl thanks, -- Varsha Purohit, Graduate Student ___ Tutor maillist - Tutor@python.org http://mail.python.org

[Tutor] [tutor] PIL versus matlab

2008-02-16 Thread Varsha Purohit
Hello All, I wanted to know what are the advantages and disadvantages of using pIL instead of matlab software to deal to image processing. thanks, -- Varsha Purohit, Graduate Student ___ Tutor maillist - Tutor@python.org http

[Tutor] [tutor] Problem in saving image file which is modified by ImageEnhance

2008-02-09 Thread Varsha Purohit
i save the enhanced image... or alternatively when i am comparing two images using imagechops i am getting a black back ground... how should i make it little brighter or use another colour instead of black ??? -- Varsha Purohit, Graduate Student ___ Tut

[Tutor] [tutor]Imagechop error

2008-02-02 Thread Varsha Purohit
pg" file2 = "Bilinear.jpg" diff = ImageChops.difference(file1, file2) ext = ".jpg" diff.save("diff" + ext, "JPEG", quality =100) -- Varsha Purohit, Graduate Student ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] [tutor] Scrollbars around the image

2008-01-31 Thread Varsha Purohit
lease anybody suggest me how should i go ahead and solve this problem ?? -- Varsha Purohit, Graduate Student ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] [tutor] Question on multithreading

2008-01-29 Thread Varsha Purohit
, -- Varsha Purohit, Graduate Student ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] [tutor] Calling python from a c program

2008-01-20 Thread Varsha Purohit
i need to pass linking options of python to the c compiler... but wat are those options :( ?? On Jan 20, 2008 7:16 AM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > "Varsha Purohit" <[EMAIL PROTECTED]> wrote > > > I just read about how to call python from a c p

Re: [Tutor] [tutor] Calling python from a c program

2008-01-20 Thread Varsha Purohit
I got the python.h file but i am getting linking errors for my program On Jan 20, 2008 1:18 AM, Varsha Purohit <[EMAIL PROTECTED]> wrote: > Hi, >I just read about how to call python from a c program. This is the > function for that > > int main() >

[Tutor] [tutor] Calling python from a c program

2008-01-20 Thread Varsha Purohit
here can i get this header file ?? And how can i call the python interpreter screen from c program ?? -- Varsha Purohit, Graduate Student ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] [tutor] Pointers in python ??

2008-01-19 Thread Varsha Purohit
Hello All, Does python has concept of pointers like c/cpp ?? If yes how.. can anyone give me a small example to how we can use pointers in python. thanks, -- Varsha Purohit, Graduate Student ___ Tutor maillist - Tutor@python.org http

Re: [Tutor] interview questions

2008-01-19 Thread Varsha Purohit
n't matter much what they ask, since you > have the level of Python knowledge that you claimed. > > Remco Gerlich > > On Jan 19, 2008 3:09 AM, Varsha Purohit < [EMAIL PROTECTED]> wrote: > > > Hello All, > >I have an interview in python program de

[Tutor] interview questions

2008-01-18 Thread Varsha Purohit
Hello All, I have an interview in python program development. Can i know some interview questions in python ? If you know any website where i can refer that would be helpful. thanks, -- Varsha Purohit, Graduate Student ___ Tutor maillist

[Tutor] [tutor] Interview questions in python and wxpython

2008-01-18 Thread Varsha Purohit
Hello All, I have an interview in python program development. Can i know some interview questions in python ? If you know any website where i can refer that would be helpful. thanks, -- Varsha Purohit, Graduate Student ___ Tutor maillist

[Tutor] [tutor] Comparing two images using PIL

2008-01-16 Thread Varsha Purohit
funciton in PIL which will help me to calculate the differences between two different JPEG images. -- Varsha Purohit, Graduate Student ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] [tutor] Zoom in and zoom out capability

2008-01-09 Thread Varsha Purohit
ment a slider which will zoom in and out the image accordingly.. - Varsha On Jan 9, 2008 12:11 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > "Varsha Purohit" <[EMAIL PROTECTED]> wrote > > > I want to implement zoom in and zoom out functions using wxpython &g

[Tutor] [tutor] Zoom in and zoom out capability

2008-01-09 Thread Varsha Purohit
on the image panel it shd accordingly zoomin or zoom out. Or may be once user selects an area inside the image where he wants to zoom in and see. Lemme know if anybody came across this kind of implementation. Any help is appreciated. -- Varsha Purohit, Graduate Student

[Tutor] [tutor] Pil image related question -- resending message without attachments

2008-01-05 Thread Varsha Purohit
im1.resize ((width,height), Image.BICUBIC) #images get saved in c drive with jpg extensions ext = ".jpg" im2.save("C:/nearest" + ext) im3.save("C:/Bicubic" + ext) print "files are saved" -- Varsha Purohit, Graduate Student __

[Tutor] [wxPython-users] passing file name from one script to the GUI class

2007-12-02 Thread Varsha Purohit
image file name to the readfile and it should call imagetobit function of the gui script and display the passed imagefile name. I am getting runtime errors thanks -- Varsha Purohit, Graduate Student from readfile import MainWindow import os class funct: def func_call(self

Re: [Tutor] [wxPython-users] Dynamically loading images on the panel of GUI

2007-12-02 Thread Varsha Purohit
image has been created and it should load the image ? On Dec 2, 2007 4:29 PM, Varsha Purohit <[EMAIL PROTECTED]> wrote: > hello everyone, > i made a small applicatin where i need to display an image on a > panel. and then when i press the read button it should read anot

[Tutor] [wxPython-users] Dynamically loading images on the panel of GUI

2007-12-02 Thread Varsha Purohit
hello everyone, i made a small applicatin where i need to display an image on a panel. and then when i press the read button it should read another image and display it on the same panel. Its working but i have to press the read button two times then only its working import wx import o

[Tutor] [wxPython-users]How to avoid the traces of frame or panel window

2007-11-28 Thread Varsha Purohit
otherwise i get like 25lines of some stupid error messages having no link to the program. I have to close all python programs again !!! Does anybody now why i am getting this thanks, -- Varsha Purohit ___ Tutor maillist - Tutor@pytho

Re: [Tutor] [wxPython-users] How to save file name of file openedfromwx.FileDialog ?

2007-11-20 Thread Varsha Purohit
:03 AM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > "Varsha Purohit" <[EMAIL PROTECTED]> wrote > > I note that you got it wotking but just to clarify... > > >I am actually calling the binding function and then writing it > > into the text value...

Re: [Tutor] [wxPython-users] How to save file name of file opened from wx.FileDialog ?

2007-11-17 Thread Varsha Purohit
olledWindow(None, -1, 'Aliens') app.MainLoop() On Nov 17, 2007 12:44 PM, Varsha Purohit <[EMAIL PROTECTED]> wrote: > Hello Everyone, > In my application i need to select a file using open dialog > box. And then i dont need to open the file. I just need to display t

Re: [Tutor] [wxPython-users] How to save file name of file opened fromwx.FileDialog ?

2007-11-17 Thread Varsha Purohit
.WriteText(Fname) f.close() dlg.Destroy() return Fname app = wx.App() ScrolledWindow(None, -1, 'Aliens') app.MainLoop() I donno the alternative to this now... :( On Nov 17, 2007 3:35 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > "Varsha Purohit&qu

[Tutor] [wxPython-users] How to save file name of file opened from wx.FileDialog ?

2007-11-17 Thread Varsha Purohit
rname=dlg.GetDirectory() dlg.Destroy() app = wx.App() ScrolledWindow(None, -1, 'Aliens') app.MainLoop() Any help is appreciated thanks, -- Varsha Purohit, Graduate Student ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] [wxPython-users] Loading default values for text box and choice

2007-11-14 Thread Varsha Purohit
application runs... thanks in advance, -- Varsha Purohit, ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] [wxPython-users] Displaying filename of open dialog box

2007-11-14 Thread Varsha Purohit
in the static text box??? thanks, -- Varsha Purohit, Graduate Student ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] [wxPython-users] Executing a python script in WxPython

2007-11-13 Thread Varsha Purohit
Thanks for the help its working now !!! On Nov 13, 2007 7:34 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > Varsha Purohit wrote: > > Hello, > > I have an application where i need to run a python script from > > wxpython gui. I am calling the script from the butt

[Tutor] [wxPython-users] Executing a python script in WxPython

2007-11-13 Thread Varsha Purohit
Hello, I have an application where i need to run a python script from wxpython gui. I am calling the script from the button click event. And the moment button is pressed the python script should be executed. thanks, Varsha Purohit, Graduate Student

Re: [Tutor] [tutor] File format conversion

2007-11-13 Thread Varsha Purohit
<[EMAIL PROTECTED]> wrote: > > "Varsha Purohit" <[EMAIL PROTECTED]> wrote > > > In one application i want to convert format of ascii file to > > binary file. > > That depends entirely on what the ASCII file contains. > Is it a comma separa

[Tutor] [tutor] File format conversion

2007-11-11 Thread Varsha Purohit
Hello All, In one application i want to convert format of ascii file to binary file. And using that binary file in a function of PIL i can convert it to an image file. So i wanted to know how to convert the file format in python... is it possible by Numpy ?? And is there any other alternativ

[Tutor] Difference between Perl and Python

2007-11-04 Thread Varsha Purohit
Hello everyone, I wanted to know what are the differences between perl and python, since both of them are scripting languages... thanks -- Varsha, ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] [tutor] Formbuffer question in PIL

2007-10-13 Thread Varsha Purohit
oops.. i wanted to ask about frombuffer which is in image library of PIL. I read the documentation but wanted a small sample program to understand its function... On 10/13/07, Varsha Purohit <[EMAIL PROTECTED]> wrote: > > Hello all, > I need some help in using formbuffer

[Tutor] [tutor] Formbuffer question in PIL

2007-10-13 Thread Varsha Purohit
Hello all, I need some help in using formbuffer function in PIL. Does anybody have sample program related to this ? thanks, -- Varsha ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] [tutor] printing bitmap image dynamically reading data inwxpython

2007-10-01 Thread Varsha Purohit
words of what i wanna do :( thanks, Varsha On 10/1/07, Alan Gauld <[EMAIL PROTECTED]> wrote: > > "Varsha Purohit" <[EMAIL PROTECTED]> wrote > > > I want to create a wxpython program where i am reading a list > > having > > integer values

Re: [Tutor] [tutor] creating image from a given data in wxpython

2007-09-30 Thread Varsha Purohit
bitmap image in pixels. But i am not getting proper implementation of this function on net... thanks,, Varsha On 9/30/07, Varsha Purohit <[EMAIL PROTECTED]> wrote: > > Hello All, > > I want to create a wxpython program where i am reading a list having > integer values like [1,

[Tutor] [tutor] printing bitmap image dynamically reading data in wxpython

2007-09-30 Thread Varsha Purohit
proper coordinates by matching values of the array. I need to make a script file for arcgis tool which converts the ascii data to a coloured bitmap image at given coordinates. thanks, -- Varsha Purohit, Graduate Student, San Diego State University

Re: [Tutor] [tutor]Help needed to read Ascii file in wxPython

2007-09-27 Thread Varsha Purohit
- 9 3 7 3 8 3 2 7 3 2 1 3 3 7 3 2 it has predefined rows and colns... i know similar program in simple python but wanna figure out how to do that in wxpython... thanks, Varsha On 9/27/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > > Varsha Purohit wrote: > > Hello everyone, &

[Tutor] [tutor]Help needed to read Ascii file in wxPython

2007-09-27 Thread Varsha Purohit
Hello everyone, I need a basic tutorial which can help me in reading or writing ascii grid file thanks in advance, -- Varsha Purohit, Graduate Student, ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] [tutor] Reading/Writing Ascii text file

2007-09-17 Thread Varsha Purohit
Hello friends, I wanted a link or tutorial to help me understand how to read or write ascii text file in python. with and without using Numpy. If you have any example that would also help me understand better. thanks, Varsha Purohit, Graduate Student

[Tutor] printing value returning from a Class

2007-09-12 Thread Varsha Purohit
instance... what should i do ?? -- Varsha Purohit, ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] [tutor] Difference between index and find in manipulating strings

2007-09-02 Thread Varsha Purohit
Thanks guys it was really helpful i m just a beginner in python start to program since two days back. So finding little difficulty with some concepts. On 9/2/07, Ricardo Aráoz <[EMAIL PROTECTED]> wrote: > > Varsha Purohit wrote: > > Hello, > > i have again very

[Tutor] [tutor] Difference between index and find in manipulating strings

2007-09-02 Thread Varsha Purohit
) 5 >>> print line.rfind("varsha") 8 >>> print line.index("varsha") 8 what does 2 in first line signifies... and why rfind gave 5 as an output... can anybody pls explain me what exactly is interpreter tryin to return. -- Varsha Purohit, ___

Re: [Tutor] Accessing Values of specific column in a 2D list or array

2007-09-02 Thread Varsha Purohit
, Alan Gauld <[EMAIL PROTECTED]> wrote: > > > "Varsha Purohit" <[EMAIL PROTECTED]> wrote > > > grid = [[1,1,2,7,6,9],\ > > [,9,1,1,1,9,1],\ > > [8,1,2,0,0,4],\ > > [1,4,1,1,8,5]] > > You don't need the &#x

[Tutor] Accessing Values of specific column in a 2D list or array

2007-09-02 Thread Varsha Purohit
Hello, Suppose i have a 2D list(grid) like grid = [[1,1,2,7,6,9],\ [,9,1,1,1,9,1],\ [8,1,2,0,0,4],\ [1,4,1,1,8,5]] how can i access to all the elements of the list from column no. 5. output should be like [6,9,0,8]... thanks,- Varsha Purohit

[Tutor] Accessing Values of specific column in a 2D list or array

2007-09-02 Thread Varsha Purohit
Hello, Suppose i have a 2D list(grid) like grid = [[1,1,2,7,6,9],\ [,9,1,1,1,9,1],\ [8,1,2,0,0,4],\ [1,4,1,1,8,5]] how can i access to all the elements of the list from column no. 5. output should be like [6,9,0,8]... thanks,- Varsha Purohit