mstn-ebooks-gui/wizard.py

51 lines
1.2 KiB
Python
Raw Normal View History

2018-12-03 09:13:56 +00:00
#!/usr/bin/env python3
from tkinter import *
from tkinter import ttk
import urllib
#https://github.com/Lynnesbian/mstdn-ebooks/archive/master.zip
# MAIN GUI
2018-12-03 09:13:56 +00:00
root = Tk()
root.title = "mstdn-ebooks Setup Wizard"
frame = ttk.Frame(root)
nb = ttk.Notebook(frame)
frm_button_box = ttk.Frame(frame)
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")
2018-12-03 09:13:56 +00:00
nb.pack(fill = "both", expand = True)
frm_button_box.pack()
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")
2018-12-03 09:13:56 +00:00
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
2018-12-03 09:13:56 +00:00
root.mainloop()