Re: [Tutor] Puzzled

2008-08-29 Thread Kent Johnson
On Fri, Aug 29, 2008 at 6:15 PM, ammar azif <[EMAIL PROTECTED]> wrote: > Thanks for the explanation. Btw, How can I get the size of python primitive > data types in bytes? Is it defined somewhere in a file that I can look at? Not really. sys.maxint gives the largest int, from which you can infer t

Re: [Tutor] Puzzled

2008-08-29 Thread ammar azif
Thanks for the explanation. Btw, How can I get the size of python primitive data types in bytes? Is it defined somewhere in a file that I can look at? --- On Fri, 8/29/08, Kent Johnson <[EMAIL PROTECTED]> wrote: From: Kent Johnson <[EMAIL PROTECTED]> Subject: Re: [Tutor] Puzzled To: [EMAIL PROTE

Re: [Tutor] Puzzled

2008-08-29 Thread Kent Johnson
On Fri, Aug 29, 2008 at 5:13 PM, ammar azif <[EMAIL PROTECTED]> wrote: > I wrote a python program that used time() function from the time module to > retrieve time in seconds since Epoch. After the value was retrieved which I > checked is a float by using type(), the value was then written into a

Re: [Tutor] Is this a "Class" problem?

2008-08-29 Thread Kent Johnson
On Fri, Aug 29, 2008 at 12:19 PM, Adrian Greyling <[EMAIL PROTECTED]> wrote: > Here's where I get fuzzy... Let's say I've got a "frame_1" object > that opens a new "frame_2" object. As you've suggested above, I'll use "m" > to create an instance of a frame object. Now frame_2 opens a "dialog_1'

[Tutor] Puzzled

2008-08-29 Thread ammar azif
I wrote a python program that used time() function from the time module to retrieve time in seconds since Epoch. After the value was retrieved which I checked is a float by using type(),  the value was then written into a file in binary format. Then another C program that I wrote opened the file

Re: [Tutor] Is this a "Class" problem?

2008-08-29 Thread Timothy Grant
On Fri, Aug 29, 2008 at 9:19 AM, Adrian Greyling <[EMAIL PROTECTED]> wrote: > Thanks for the response Jeff, although your answer has spawned another > question or two! In your answer, you showed that the attribute " > MySecondFrame.text_ctrl_2" doesn't exist and to correct that, you suggested > th

Re: [Tutor] dynamic argument lists

2008-08-29 Thread Bob Gailer
On Fri, Aug 29, 2008 at 12:20 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > On Fri, Aug 29, 2008 at 9:49 AM, eShopping > <[EMAIL PROTECTED]> wrote: > > Hi > > > > I have a GUI program that extracts some information from the user as > > strings, and I then want to use the strings to form an argumen

Re: [Tutor] dynamic argument lists

2008-08-29 Thread Kent Johnson
On Fri, Aug 29, 2008 at 9:49 AM, eShopping <[EMAIL PROTECTED]> wrote: > Hi > > I have a GUI program that extracts some information from the user as > strings, and I then want to use the strings to form an argument list to > another function. Hopefully the following code gives some flavour: > > def

Re: [Tutor] Is this a "Class" problem?

2008-08-29 Thread Adrian Greyling
Thanks for the response Jeff, although your answer has spawned another question or two! In your answer, you showed that the attribute " MySecondFrame.text_ctrl_2" doesn't exist and to correct that, you suggested the code below. (What I understand from your response is that I can't reference the o

[Tutor] dynamic argument lists

2008-08-29 Thread eShopping
Hi I have a GUI program that extracts some information from the user as strings, and I then want to use the strings to form an argument list to another function. Hopefully the following code gives some flavour: def myfunc(**kwargs): while kwargs: name, value = kwargs.popitem()

Re: [Tutor] Excel com strange behavior

2008-08-29 Thread Kent Johnson
On Fri, Aug 29, 2008 at 8:18 AM, johan nilsson <[EMAIL PROTECTED]> wrote: > "c:\pythonxy\python\lib\site-packages\pywin32-2.11-py2.5-win32.egg\win32com\client\build.py", > line 542, in > return filter( lambda char: char in valid_identifier_chars, className) > UnicodeDecodeError: 'ascii' codec

[Tutor] Excel com strange behavior

2008-08-29 Thread johan nilsson
Dear all, I have a problem with talking to Excel. Somehow the command Workbooks.Add() gives me problems? If I open a workbook in Excel, then I get the trace back below. I can not say that I quite understand why this does not work. Any insights would be highly appreciated. If I "manually" open the