define timeslots in config
This commit is contained in:
3
main.py
3
main.py
@ -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)
|
||||
|
Reference in New Issue
Block a user