Strip Enemizer

Foundation for GUI translation
This commit is contained in:
Mike A. Trethewey
2020-03-09 19:10:40 -07:00
parent ff51821701
commit ceceee68df
6 changed files with 342 additions and 25 deletions

View File

@@ -1,8 +1,5 @@
from tkinter import Checkbutton, Entry, Frame, IntVar, Label, OptionMenu, Spinbox, StringVar, RIGHT, X
# Need a dummy class
class Empty():
pass
from source.classes.Empty import Empty
# Override Spinbox to include mousewheel support for changing value
class mySpinbox(Spinbox):
@@ -144,6 +141,7 @@ def make_widget_from_dict(self, defn, parent):
managerAttrs = defn["managerAttrs"] if "managerAttrs" in defn else None
options = defn["options"] if "options" in defn else None
widget = make_widget(self, type, parent, label, None, manager, managerAttrs, options)
widget.type = type
return widget
# Make a set of generic widgets from a dict