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

2007-09-28 Thread Kent Johnson
Varsha Purohit wrote:
> I am writing a program basically in python gui to open a file and 
> display its content. i know similar program in simple 
> python but wanna figure out how to do that in wxpython...

See DocViewDemo.py in the wxPythohn demo package
/Samples/samples/docview/DocViewDemo.py

Kent
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


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

2007-09-27 Thread Michael Langford
While I would say wxPython in its fullblown glory is a little much for
this mailing list, an easy to use toolkit and associated tutorials for
it is not. I would suggest you use pythoncard, which is a toolkit that
calls down to wxPython and is much faster to get going with:

This will get you up and running in a couple minutes.
http://pythoncard.sourceforge.net/walkthrough1.html

Run some of the example programs (they're in a subdirectory of your
python folder, like the tutorial says). Their source code will lead
you to an appropriate sort of file editor.

--Michael

-- 
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
Entertaining: http://www.ThisIsYourCruiseDirectorSpeaking.com


On 9/27/07, Varsha Purohit <[EMAIL PROTECTED]> wrote:
> Hi Kent,
>
> I am writing a program basically in python gui to open a file and display
> its content. File contains ascii data... here is an example of that.
> a text file having info like this
>
> ncols 4
>  nrows 4
> xllcorner 392800
> yllcorner 5376340
> cellsize  55
> NODATA_value  -
> 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,
> > >   I need  a basic tutorial which can help me in reading or writing
> > > ascii grid file
> >
> > What is an ascii grid file? Reading and writing text files should be
> > covered in any Python tutorial, find one you like here:
> > http://wiki.python.org/moin/BeginnersGuide/NonProgrammers
> >
> > Kent
> >
>
>
>
> --
> Varsha Purohit,
> Graduate Student,
> San Diego State University
> ___
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


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

2007-09-27 Thread Varsha Purohit
Hi Kent,

I am writing a program basically in python gui to open a file and display
its content. File contains ascii data... here is an example of that.
a text file having info like this

ncols 4
nrows 4
xllcorner 392800
yllcorner 5376340
cellsize  55
NODATA_value  -
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,
> >   I need  a basic tutorial which can help me in reading or writing
> > ascii grid file
>
> What is an ascii grid file? Reading and writing text files should be
> covered in any Python tutorial, find one you like here:
> http://wiki.python.org/moin/BeginnersGuide/NonProgrammers
>
> Kent
>



-- 
Varsha Purohit,
Graduate Student,
San Diego State University
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


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

2007-09-27 Thread Kent Johnson
Varsha Purohit wrote:
> Hello everyone,
>   I need  a basic tutorial which can help me in reading or writing 
> ascii grid file

What is an ascii grid file? Reading and writing text files should be 
covered in any Python tutorial, find one you like here:
http://wiki.python.org/moin/BeginnersGuide/NonProgrammers

Kent
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[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