Re: problem with eval while using PythonCard

2007-05-25 Thread 7stud
On May 25, 4:43 pm, "Michal Lipinski" <[EMAIL PROTECTED]> wrote: > now it's working just fine. but still I dont know why eval dont work ? > > and thx for help > > 25 May 2007 15:05:03 -0700, 7stud <[EMAIL PROTECTED]>: > > > > > Here's a complete example: > > > ### > > #create objec

Re: problem with eval while using PythonCard

2007-05-25 Thread Michal Lipinski
now it's working just fine. but still I dont know why eval dont work ? and thx for help 25 May 2007 15:05:03 -0700, 7stud <[EMAIL PROTECTED]>: > Here's a complete example: > > ### > #create object 's': > > class S(object):pass > class X(object):pass > class Y(object):pass > > s =

Re: problem with eval while using PythonCard

2007-05-25 Thread 7stud
Here's a complete example: ### #create object 's': class S(object):pass class X(object):pass class Y(object):pass s = S() s.components = X() s.components.d1 = Y() s.components.d2 = Y() s.components.d3 = Y() ## ## set some initial values: f

Re: problem with eval while using PythonCard

2007-05-25 Thread 7stud
On May 25, 3:33 pm, "Michal Lipinski" <[EMAIL PROTECTED]> wrote: > Hi > > its my first post. I have a problem, I want to user eval() function in > a for loop to set labels to staticText so i done something like this: > > dzien=self.components.Calendar.GetDate().GetDay() >for i in range(1,8):

problem with eval while using PythonCard

2007-05-25 Thread Michal Lipinski
Hi its my first post. I have a problem, I want to user eval() function in a for loop to set labels to staticText so i done something like this: dzien=self.components.Calendar.GetDate().GetDay() for i in range(1,8): act=dzien+i -1 eval( 'self.components.d' + str(i) +