Thanks for looking at my question.
This is my first time working with Python so I am on the learning curve. I am creating a menu and I am populating a combo box from a field in a feature class in a file geodatabase. It works thought the data retrieved needs cleaned up, I have tried a few different way to retrieve the data and I get the same results.
I want to populate the combo box with map numbers, which I do get.... I want to see the map numbers looking like 01-01-01, etc. I get [[(u'01-01-01',),. I realize the [[ brackets are because I am putting the data is a list. Not sure on the rest of it.
The following is my code:
from tkinter import ttk
cursor = arcpy.da.SearchCursor("R:\Projects\MAP_Projects.gdb\MAP_INDEX","Map_No")
list1 = []
for row in cursor:
list1.append(row)
list1.sort()
comboMapBox = ttk.Combobox(root, width=15, values = [list1])
comboMapBox.grid(column=0, row=1)
comboMapBox.current(0)
comboMapBox.place(x=125,y=60)
Thank you for taking a look, I am pleased I at least have it working....somewhat. I am just not sure what I am missing, or have not found yet in my searching of the internet.
Dale,