[Tutor] Bootstrapping PYTHONPATH

2006-09-05 Thread Terrence Brannon
I'm writing a suite of data processing scripts with this layout Data/Vendor/A/proc.py Data/Vendor/B/proc.py Etc, etc Now, I started down the road of having a global config file in Data/Vendor/Global.ini and a per-vendor local config file in Data/Vendor/A/Local.ini But then I realized that I hate

Re: [Tutor] Where to post a Python Program

2006-09-05 Thread Collin Hockey
I've posted things to http://www.uselesspython.com before. They don't have a specific comment form, but you can allow users to e-mail you with responses. Carroll, Barry wrote: > Greetings: > > > > I have written a console version of the dice game Yahtzee). I would > like to post it for com

Re: [Tutor] Hi All

2006-09-05 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Amit Rane > Sent: Saturday, September 02, 2006 4:52 AM > To: tutor@python.org > Subject: [Tutor] Hi All > > Hi , > This is Amit from India ... > i have just started working on Python ... >

Re: [Tutor] Where to post a Python Program

2006-09-05 Thread Daniel McQuay
> Greetings: >  > I have written a console version of the dice game Yahtzee).  I would like to post it for comment. It is too long to post here and I don’t have a web site.  > Is there some place where I can post my code and get feedback about it?   Hey Barry,   There are several web

[Tutor] Where to post a Python Program

2006-09-05 Thread Carroll, Barry
Greetings:   I have written a console version of the dice game Yahtzee).  I would like to post it for comment. It is too long to post here and I don’t have a web site.  Is there some place where I can post my code and get feedback about it?   Regards,   Barry [EMAIL PROTECTED] 541-3

Re: [Tutor] [tutor] how to cast to stucture

2006-09-05 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Hi list, > > i have a complex data in binary file and i want to read its > fields... the C way is to read file in buffer and then cast > it to proper structure. Is there a way to do the same in > Python or i have to read the data byte by byte ? As well as the struct modu

Re: [Tutor] about tkinter

2006-09-05 Thread Alan Gauld
> you can use a "hidden" root window, like this: > >root = Tk() >root.withdraw()# hide the root window Aha! I thought there should be a better way than defining the size to be 1 pixel! :-) Thanks for that tip Michael, Alan Gauld Author of the Learn to Program web site http://www.freene

Re: [Tutor] Q

2006-09-05 Thread Alan Gauld
> my Q is how do you learn the languge of python ? > and how do you program? Visit the Python website, download and install Python for your platform. Visit the beginners page and find a beginners tutorial that you like (maybe mine). http://wiki.python.org/moin/BeginnersGuide/NonProgrammers

Re: [Tutor] [tutor] how to cast to stucture

2006-09-05 Thread Alan Gauld
> i have a complex data in binary file and i want to read its > fields... the C way is to read file in buffer and then cast > it to proper structure. Is there a way to do the same in > Python or i have to read the data byte by byte ? You can use the struct module to unpack an arbitrary sequence o

Re: [Tutor] about tkinter

2006-09-05 Thread Alan Gauld
>> Here is a very short example of creating two windows: >> >> >>> from Tkinter import * >> >>> win = Tk() >> >>> win1 = Toplevel(win) >> >>> f = Frame(win) >> >>> f.pack() >> >>> g = Frame(win1) >> >>> g.pack() >> >>> Label(f,text="Main").pack() >> >>> Label(g,text="Sub").pack() >> >>> win.mainloo

Re: [Tutor] Q

2006-09-05 Thread tomd
> my Q is how do you learn the languge of python ? and how do you program? see http://www.freenetpages.co.uk/hp/alan.gauld/ -- Tom, http://www.vscripts.net/ ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Q

2006-09-05 Thread Kent Johnson
mike park wrote: > my Q is how do you learn the languge of python ? and how do you program? Read one of the tutorials here: http://wiki.python.org/moin/BeginnersGuide/NonProgrammers Try things out. Experiment. Ask questions on this list when you get stuck or don't understand something. The book

Re: [Tutor] about tkinter

2006-09-05 Thread Michael Lange
On Tue, 5 Sep 2006 01:46:02 -0700 "linda.s" <[EMAIL PROTECTED]> wrote: > > > If I close the 'main' window, 'sub' window will be closed too. How can > I close just one window? > Linda Hi Linda, you can use a "hidden" root window, like this: root = Tk() root.withdraw()# hide the root wind

Re: [Tutor] about tkinter

2006-09-05 Thread linda.s
On 9/5/06, Alan Gauld <[EMAIL PROTECTED]> wrote: > Hi Linda, > > >> Can you be clearer about what exactly you want to do? > >> > > I want to open two windows with one having the blue triangle and the > > other one having the red triangle (the code is attached). I can not > > figure out how to use t

[Tutor] Q

2006-09-05 Thread mike park
my Q is how do you learn the languge of python ? and how do you program? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] about tkinter

2006-09-05 Thread Alan Gauld
Hi Linda, >> Can you be clearer about what exactly you want to do? >> > I want to open two windows with one having the blue triangle and the > other one having the red triangle (the code is attached). I can not > figure out how to use toplevel. Looking at your code it would help the readasbility

Re: [Tutor] [tutor] how to cast to stucture

2006-09-05 Thread Pawel Kraszewski
Dnia wtorek, 5 września 2006 08:32, [EMAIL PROTECTED] napisał: > i have a complex data in binary file and i want to read its > fields... the C way is to read file in buffer and then cast > it to proper structure. Is there a way to do the same in > Python or i have to read the data byte by byte ?

Re: [Tutor] about tkinter

2006-09-05 Thread linda.s
On 8/9/06, Alan Gauld <[EMAIL PROTECTED]> wrote: Linda, > Is that possible to open two Tkinter from one python shell? Tkinter is a python module. You can't really open a Tkinter, you can only import the module. What you can do is write a Tkinter application with multiple windows. You can have