Iterating variables to change its features in Python -


I specified values ​​in a loop with the set () function:

  (30 ): Range (6) for J: Satetrer (self, "e" +++ str (i) + ar (j), entry (self tip))  

, Then I want to apply .grid () func with a loop with all these variables

For example,

  self.e00.grid (line = 0 , Column = 0)  

How can I do this

Maybe instead of suits for your matrix Use list of keys:

  self.metrics = [[border (6)] for j [[entry (self top)] # in column # for i columns ( 30)] For the rows i, the line in enumerate (self.ematrix): For J, ALT these calculations (line): elt.grid (line = i, column = j)  
< / Div>

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -