# 需要导入模块: import Pmw [as 别名]
# 或者: from Pmw import NoteBook [as 别名]
def __init__(self, parent, section):
self.section=section
self.settings = self.read_settings()
self.changes_flag = False
self.dialog = Pmw.Dialog(parent,
buttons = ('OK', 'Apply', 'Cancel'),
defaultbutton = 'OK',
title = section + ' Settings',
command = self.execute)
self.dialog.bind('', self.cancel)
self.balloon = Pmw.Balloon(self.dialog.interior(),
label_wraplength=400)
notebook = Pmw.NoteBook(self.dialog.interior())
notebook.pack(fill = 'both', expand = 1, padx = 10, pady = 10)
self.entrydict = {section: {}}
if section == 'General':
subsections = ['General',]
subse