(Aug-07-2019, 05:42 AM)Yoriz Wrote: If you want access by row and column make a list of lists
https://python-forum.io/Thread-Basic-Lists Wrote:Matrices
You can represent matrices (in C: multidimensional arrays) with lists also, by nesting lists inside of lists.
>>> matrix = [[1,2,3], [4,5,6], [7,8,9]] >>> matrix [[1, 2, 3], [4, 5, 6], [7, 8, 9]] >>> matrix[0] [1, 2, 3] >>> matrix[0][0] 1 >>> matrix[-1] [7, 8, 9] >>> matrix[-1][0] 7
yes is different option: how to store data, but biggest problem is in disabled and normal status- i focus on that. - how to make in nice easy way than that:
def confirm(self): s[:] = [1 if v.get() else 0 for v in self.checkvars] if s[0] == 1: s[5]=0 self.chk11.config(state=DISABLED) if s[0] == 0: self.chk11.config(state=NORMAL)