Jan-16-2020, 02:06 AM
Hi All,
It has been some time since I have finished writing my program. I have run into a problem where I am trying to print and export data from sqlite3 db to a form so I can modify/edit the data and then update it.
Currently when I am printing the selected Treeview item back to console, this is what I get:
['', '', [9006, u'SW07', u'Cisco 2950-48', u'CAT586868293', 40], 0, '']
values are (left to right):
product ID
device name
device model
device serial
pallet number
I would then like to create a form which populates entry fields in order for me to modify and rewrite those changes to the sqlite db. (unfortunately I deleted this bit of code as I kept getting lots of errors)
Also, what are the u'?
Sorry for sounding
, but I currently am new to python and learning it as I go.
Below is the line of code.
It has been some time since I have finished writing my program. I have run into a problem where I am trying to print and export data from sqlite3 db to a form so I can modify/edit the data and then update it.
Currently when I am printing the selected Treeview item back to console, this is what I get:
['', '', [9006, u'SW07', u'Cisco 2950-48', u'CAT586868293', 40], 0, '']
values are (left to right):
product ID
device name
device model
device serial
pallet number
I would then like to create a form which populates entry fields in order for me to modify and rewrite those changes to the sqlite db. (unfortunately I deleted this bit of code as I kept getting lots of errors)
Also, what are the u'?
Sorry for sounding

Below is the line of code.
def funcEditInvent(): selected_item=tree1.selection() device=tree1.item(selected_item) device=list(device.values()) print (device)