Apr-15-2017, 11:59 AM
how can i set values (for example query result from sql) in a tktable????
i don't understand meaning of the following lines
self.table.set( str® + "," + str©, str( col ))
or
self.table.set('row', idx, col)
please explain them
".set" is a function in TkTable.py
i can fetchall my data from the database, but my tktable don't show my q
a part of my code that gets data from sql table and then puts in the tktable, is:
i need a table so that i can get index of row & column of the selected row and also with "bind" attribute
i don't understand meaning of the following lines
self.table.set( str® + "," + str©, str( col ))
or
self.table.set('row', idx, col)
please explain them
".set" is a function in TkTable.py
i can fetchall my data from the database, but my tktable don't show my q
a part of my code that gets data from sql table and then puts in the tktable, is:
[def fill_table( self, cur ): cur.execute("SELECT * FROM trunmanage") rows = cur.fetchall() print("rows") print(rows) r = 0 for row in rows: c = 0 for col in row: self.table.set( str(r) + "," + str(c), str( col ) c = c + 1 r = r + 1]if you have another suggestion instead of tktable, please tell me
i need a table so that i can get index of row & column of the selected row and also with "bind" attribute