def __init__(self, master, label):
"""Construct the sub frame."""
tk.Frame.__init__(self, master, bg=SUBFRAME_COLORS[0])
self.pack(side=tk.TOP, fill=tk.BOTH)
self.options = {}
header_font = tkFont.Font(family='Serif', size=18, weight=tkFont.BOLD)
self._label = tk.Label(master=self, text='# '+ label, anchor=tk.NW,
padx=25, font=header_font,
bg=HEADER_COLORS[0], fg=HEADER_COLORS[1])
self._label.pack(fill=tk.X)
评论列表
文章目录