How to Choose specific data from a readonly text box using tkinter?

170
March 09, 2017, at 04:20 AM

I've written come code that selects certain data from a sqlite3 database and outputs them as follows:

2017-06-05 test 09:00:00 11:00:00
2017-06-12 test 09:00:00 11:00:00
2017-06-19 test 09:00:00 11:00:00
2017-06-26 test 09:00:00 11:00:00

I want to get the dates, and change them so they are a heading for the other data. How would I go about selecting the dates and making them headers?

Example of what I want;

2017-06-05 (in larger font)
name of timeslot: test 
start time: 09:00:00 
end time: 11:00:00

code that handle the search function:

def searched():
    Main_Screen.configure(state = 'normal')
    Main_Screen.delete('1.0', END)
    searched_for = search.get()
    timeslot = cursor.execute('''SELECT * FROM dates WHERE Name = (?)''',(searched_for,))
    list1 = list(cursor.fetchall())
    cursor.execute('''SELECT COUNT(*) FROM dates WHERE Name = (?) ''',(searched_for,))
    result = cursor.fetchone()
    output_text = '\n'.join([' '.join(row) for row in list1])
    Main_Screen.insert(tkinter.END, output_text)
Answer 1

You could get it line by line and do the following:

print line.split()[0]
print "name of time:", line.split()[1]
print "start time:", line.split()[2]
print "end time:", line.split()[3]
READ ALSO
Python 2 OpenCV 2 - Convex Hull to close an open Canny Edge?

Python 2 OpenCV 2 - Convex Hull to close an open Canny Edge?

I'm creating a Python program that will take an image (photo of a bed), then run Canny Edge detection, then run a Convex Hull Contour Detection in order to figure out where the bed is

188
Apache access to php for python script doesn't work

Apache access to php for python script doesn't work

I know that there are many similar questions and solutions available everywhere for this situationApology for the repetition, let me describe my pain: All efforts to give permission to python script for php based web access goes in vain

131
Url pop up on robot framework

Url pop up on robot framework

I need to verify URL pop up on robot framework which method robot can i use i use the method Location Should Be like that

199