def __init__(self, json_str, master=None):
    j = json.loads(json_str)
    self.name = j['name']
    self.description = j['description']
    self.flag = j['flags'][(len(j['flags']) - 1)]
    self.parameter_type = j['parameter_type']
    self.optional = True
    default_value = j['default_value']
    ttk.Frame.__init__(self, master)
    self.grid()
    self['padding'] = '0.05i'
    frame = ttk.Frame(self, padding='0.0i')
    self.value = tk.IntVar()
    c = ttk.Checkbutton(frame, text=self.name, width=55, variable=self.value)
    c.grid(row=0, column=0, sticky=tk.W)
    if ((j['default_value'] != None) and (j['default_value'] != 'false')):
        self.value.set(1)
    else:
        self.value.set(0)
    frame.grid(row=1, column=0, sticky=tk.W)
    frame.columnconfigure(0, weight=1)
    self.columnconfigure(0, weight=1)
    self.rowconfigure(0, weight=1)
def __init__(self, json_str, master=None):
    j = json.loads(json_str)
    self.name = j['name']
    self.description = j['description']
    self.flag = j['flags'][(len(j['flags']) - 1)]
    self.parameter_type = j['parameter_type']
    self.optional = True
    default_value = j['default_value']
    ttk.Frame.__init__(self, master)
    self.grid()
    self['padding'] = '0.05i'
    frame = ttk.Frame(self, padding='0.0i')
    self.value = tk.IntVar()
    c = ttk.Checkbutton(frame, text=self.name, width=55, variable=self.value)
    c.grid(row=0, column=0, sticky=tk.W)
    if ((j['default_value'] != None) and (j['default_value'] != 'false')):
        self.value.set(1)
    else:
        self.value.set(0)
    frame.grid(row=1, column=0, sticky=tk.W)
    frame.columnconfigure(0, weight=1)
    self.columnconfigure(0, weight=1)
    self.rowconfigure(0, weight=1)