define timeslots in config

This commit is contained in:
2022-12-02 11:34:32 +01:00
parent 02ca1d543d
commit b5671b9282
4 changed files with 5 additions and 21 deletions

View File

@ -13,7 +13,6 @@ import db
log = logging.getLogger("main")
db.create_transmissions_table()
db.create_timeslots_table()
class MainWindow(Gtk.Window):
def __init__(self):
@ -96,7 +95,7 @@ class MainWindow(Gtk.Window):
self.picked_date = "%i-%s-%s"%(year, month, day)
self.timeslots = Gtk.ListBox()
for slot in ["09:00", "15:00", "21:00"]:
for slot in config.timeslots:
row = Gtk.ListBoxRow()
hbox = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=50)
row.add(hbox)