Fix Custom Item Pool (again again)

This commit is contained in:
Mike A. Trethewey
2020-02-23 16:21:39 -08:00
parent 55fee9317d
commit baec0e4548
5 changed files with 204 additions and 184 deletions

View File

@@ -3,6 +3,8 @@ import gui.widgets as widgets
import json
import os
import classes.constants as CONST
def custom_page(top,parent):
# Custom Item Pool
self = ttk.Frame(parent)
@@ -46,8 +48,7 @@ def custom_page(top,parent):
for key in dictWidgets:
self.customWidgets[key] = dictWidgets[key]
keys = list(self.customWidgets.keys())
for i in range(0, len(keys)):
self.customWidgets[keys[i]].storageVar.set(top.settings["customitemarray"][i])
for key in CONST.CUSTOMITEMS:
self.customWidgets[key].storageVar.set(top.settings["customitemarray"][key])
return self