字典即可生成一个简单的UI,每个点击按钮对应一个函数,输入框对应数据存储在StringStacks。
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
from tkinter import *
from tkinter.ttk import *
StringStacks = {
}
class UIStack:
def __init__(self, mylist):
self.dblist = []
global dblist
root = Tk()
root.title(mylist['title']