Dictify Generation Setup options
This commit is contained in:
@@ -9,38 +9,33 @@ def generation_page(parent,settings):
|
|||||||
# Generation Setup options
|
# Generation Setup options
|
||||||
self.widgets = {}
|
self.widgets = {}
|
||||||
|
|
||||||
## Generate Spoiler
|
myDict = {
|
||||||
key = "spoiler"
|
## Generate Spoiler
|
||||||
self.widgets[key] = widgets.make_widget(
|
"spoiler": {
|
||||||
self,
|
"type": "checkbox",
|
||||||
"checkbox",
|
"label": {
|
||||||
self,
|
"text": "Create Spoiler Log"
|
||||||
"Create Spoiler Log",
|
}
|
||||||
None
|
},
|
||||||
)
|
## Don't make ROM
|
||||||
self.widgets[key].pack(anchor=W)
|
"suppressrom": {
|
||||||
|
"type": "checkbox",
|
||||||
## Don't make ROM
|
"label": {
|
||||||
key = "suppressrom"
|
"text": "Do not create patched ROM"
|
||||||
self.widgets[key] = widgets.make_widget(
|
}
|
||||||
self,
|
},
|
||||||
"checkbox",
|
## Use Custom Item Pool as defined in Custom tab
|
||||||
self,
|
"usecustompool": {
|
||||||
"Do not create patched ROM",
|
"type": "checkbox",
|
||||||
None
|
"label": {
|
||||||
)
|
"text": "Use custom item pool"
|
||||||
self.widgets[key].pack(anchor=W)
|
}
|
||||||
|
}
|
||||||
## Use Custom Item Pool as defined in Custom tab
|
}
|
||||||
key = "usecustompool"
|
dictWidgets = widgets.make_widgets_from_dict(self, myDict, self)
|
||||||
self.widgets[key] = widgets.make_widget(
|
for key in dictWidgets:
|
||||||
self,
|
self.widgets[key] = dictWidgets[key]
|
||||||
"checkbox",
|
self.widgets[key].pack(anchor=W)
|
||||||
self,
|
|
||||||
"Use custom item pool",
|
|
||||||
None
|
|
||||||
)
|
|
||||||
self.widgets[key].pack(anchor=W)
|
|
||||||
|
|
||||||
## Locate base ROM
|
## Locate base ROM
|
||||||
baseRomFrame = Frame(self)
|
baseRomFrame = Frame(self)
|
||||||
|
|||||||
Reference in New Issue
Block a user