From 7aa61121631fbe5426915f77e8d00b7ff961d2ea Mon Sep 17 00:00:00 2001 From: Lynne Date: Mon, 3 Dec 2018 19:57:58 +1000 Subject: [PATCH] started work on the individual pages of the notebook --- wizard.py | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/wizard.py b/wizard.py index 0fc63d1..da1b03e 100755 --- a/wizard.py +++ b/wizard.py @@ -6,6 +6,8 @@ import urllib #https://github.com/Lynnesbian/mstdn-ebooks/archive/master.zip +# MAIN GUI + root = Tk() root.title = "mstdn-ebooks Setup Wizard" frame = ttk.Frame(root) @@ -15,13 +17,34 @@ btn_cancel = ttk.Button(frm_button_box, text = "Cancel") btn_back = ttk.Button(frm_button_box, text = "Back") btn_next = ttk.Button(frm_button_box, text = "Next") +pages = [] +for i in ["Welcome", "Select instance", "Create account", "Paste link", "Confirm follows", "Set info", "Install Python", "Install mstdn-ebooks", "Download toots", "Schedule automatic posting", "Enable replies", "Finished"]: + #create pages + pages.append(ttk.Frame(nb)) + nb.add(pages[len(pages) - 1], text = i, state="hidden") + nb.pack(fill = "both", expand = True) frm_button_box.pack() -btn_cancel.grid(column = 0, row = 0) -btn_back.grid(column = 1, row = 0) -btn_next.grid(column = 2, row = 0) +btn_cancel.grid(column = 0, row = 0, sticky="W") +btn_back.grid(column = 1, row = 0, sticky="E") +btn_next.grid(column = 2, row = 0, sticky="E") frame.pack(fill = "both", expand = True) +# PAGES +# Welcome +# Select instance +# Create account +# Paste link +# Confirm follows +# Set info +# Install Python +# Install mstdn-ebooks +# Download toots +# Schedule automatic posting +# Enable replies +# Finished + + root.mainloop()