How to display Results of Query in a dialog.select box
#1
Seems pretty simple but having issues displaying the results of a query in a dialogue.

Quite simply... what is the best way to get results in a dialogue popup?

Here is my query code...
Code:
souce_list = []
            conn = sqlite3.connect(mavdb)
            c = conn.cursor()
            c.execute("""SELECT * FROM sources""")
            db=c.fetchall()
            for item in db:
                source = {}
                source["src_name"]
                source["src_hostip"]
                source["src_url"]
                source["src_type"]
                source["src_pid"]
                source["src_actflag"]
                source_list.append(source)
                c.close

            dialog = xbmcgui.Dialog()
            type = dialog.select(Addon.getLocalizedString( 30020 ), [source["name"]])
Thanks.Rolleyes
Enjoy OpenSource! :nod:
MY SETUP: XBMC 12 Frodo RC3, Multiple Asus EB1501's throughout the Home for XBMC based STB's
Reply

Logout Mark Read Team Forum Stats Members Help
How to display Results of Query in a dialog.select box0