Re: [Tutor] Help with the following code..

2006-11-23 Thread Bob Gailer
Alan Gauld wrote: > I think he has a reference but just couldn't see how you could draw > a 4 cornered shape with only two corners specified. > And I assumed no reference, since references usually spell out the meaning of parameters. -- Bob Gailer 510-978-4454 ___

Re: [Tutor] Help with the following code..

2006-11-23 Thread Alan Gauld
"Bob Gailer" <[EMAIL PROTECTED]> wrote > Asrarahmed Kadri wrote: >> I am not able to understand why two pairs of co-ordinates are >> supplied?? The rectangle requires 4 co-ordinate pairs, Isnt it?? > "6.9. The canvas rectangle object - Each rectangle is specified as > two > points: (x0, y0) is

Re: [Tutor] Help with the following code..

2006-11-23 Thread Bob Gailer
Asrarahmed Kadri wrote: > > Hi all, > > > Trying to draw a simple bar chart on canvas of Tkinter. > > Here is code: > > > from Tkinter import * > > root = Tk() > > frame = Frame(root) > frame.pack() > > canvas = Canvas(frame,height=400,width=400) > > canvas.create_line(50,350,350,350,width=

Re: [Tutor] Help with the following code..

2006-11-23 Thread John Fouhy
On 24/11/06, Asrarahmed Kadri <[EMAIL PROTECTED]> wrote: > canvas.create_rectangle(50,340,250,330) # this is the first HORIZONTAL BAR > canvas.pack () > > root.mainloop() > I am not able to understand why two pairs of co-ordinates are supplied?? The > rectangle requires 4 co-ordinate pairs, Isnt

[Tutor] Help with the following code..

2006-11-23 Thread Asrarahmed Kadri
Hi all, Trying to draw a simple bar chart on canvas of Tkinter. Here is code: from Tkinter import * root = Tk() frame = Frame(root) frame.pack() canvas = Canvas(frame,height=400,width=400) canvas.create_line(50,350,350,350,width=2) # draws the X-axis canvas.create_line(50,350,50,50,width=

Re: [Tutor] help with Tkinter, please

2006-11-23 Thread Alan Gauld
"Dick Moores" <[EMAIL PROTECTED]> wrote > def compute_fact(): > value = int(entry_get()) > File "factTk1-a.py", line 22, in compute_fact > value = int(entry_get()) > NameError: global name 'entry_get' is not defined > > I'm so dumb I don't see how to define it. get is a method o

Re: [Tutor] help with Tkinter, please

2006-11-23 Thread Dick Moores
At 08:01 AM 11/23/2006, Michael Lange wrote: >On Thu, 23 Nov 2006 02:07:17 -0800 >Dick Moores <[EMAIL PROTECTED]> wrote: > > > I think I see how to make a simple GUI with Tkinter, but I still > > don't see how to use one with even a simple, previously non-GUI > > Python script. I'm wondering if som

Re: [Tutor] Tutor Digest, Vol 33, Issue 84

2006-11-23 Thread Danny Yoo
> I think I see how to make a simple GUI with Tkinter, but I still > don't see how to use one with even a simple, previously non-GUI > Python script. I'm wondering if someone could create an example for > me, using the 2 functions fact() and printFact() at >

Re: [Tutor] How to make the label left justified in a frame

2006-11-23 Thread Michael Lange
On Thu, 23 Nov 2006 14:14:59 + "Asrarahmed Kadri" <[EMAIL PROTECTED]> wrote: > Hi Folks, > > I am using grid manager inside a frame to arrange 4 label widgets, one > beneath the other. > > What I want is that all teh labels should be placed in the left of the > frame... > > There is no effe

Re: [Tutor] help with Tkinter, please

2006-11-23 Thread Michael Lange
On Thu, 23 Nov 2006 02:07:17 -0800 Dick Moores <[EMAIL PROTECTED]> wrote: > I think I see how to make a simple GUI with Tkinter, but I still > don't see how to use one with even a simple, previously non-GUI > Python script. I'm wondering if someone could create an example for > me, using the 2

[Tutor] How to make the label left justified in a frame

2006-11-23 Thread Asrarahmed Kadri
Hi Folks, I am using grid manager inside a frame to arrange 4 label widgets, one beneath the other. What I want is that all teh labels should be placed in the left of the frame... There is no effect of using sticky = W. Please help ; is it possible to do it with anchor..??? I have the follwng

Re: [Tutor] Python and ODS

2006-11-23 Thread Christopher Arndt
(sorry, did only send this to the OP first, now re-sending to list) Basil Shubin schrieb: > Hi friends! > > Is there any extension or library to create/write data in OpenDocument > Spreadsheet? I found pyExcelerator, but it's working only with xls format. How about pyUno? http://udk.openoffice

[Tutor] help with Tkinter, please

2006-11-23 Thread Dick Moores
I think I see how to make a simple GUI with Tkinter, but I still don't see how to use one with even a simple, previously non-GUI Python script. I'm wondering if someone could create an example for me, using the 2 functions fact() and printFact() at . I'm t

Re: [Tutor] IIS and Virtual directories

2006-11-23 Thread Tim Golden
| I have been trying to figure out how to create an IIS Virtual | Directory through Python but can't find anything that works. | I have done it in the past with Perl with the script below | but can't seem to figure out how to do it in Python. I was | wondering if someone could point me in the r