added spawn option to combine overlay

fixed perceiving red bug
This commit is contained in:
2022-10-16 00:53:05 +02:00
parent 3b43135383
commit 19926a7973
3 changed files with 18 additions and 5 deletions

View File

@@ -13,11 +13,15 @@ class CombineOverlay(threading.Thread):
self.root = tk.Tk
self.spawn_use = tk.StringVar
self.SpawnLabel = tk.Label
self.SpawnEntry = tk.Entry
self.ButtonFrame = tk.Frame
self.StartButton = tk.Button
self.StopButton = tk.Button
self.TkPosition = '133x52+60+600'
self.TkPosition = '133x75+60+600'
self.StatusLabel = tk.Label
@@ -25,12 +29,19 @@ class CombineOverlay(threading.Thread):
def run(self):
self.root = tk.Tk()
self.spawn_use = tk.StringVar(self.root, value='100')
self.SpawnLabel = tk.Label(self.root, text="Spawn:", font=("Helvetica", 10, "bold"),
background="grey")
self.SpawnLabel.grid(row=0, column=0)
self.SpawnEntry = tk.Entry(self.root, textvariable=self.spawn_use, font=("Helvetica", 10, "bold"), width='12')
self.SpawnEntry.grid(row=0, column=1, columnspan=2)
self.ButtonFrame = tk.Frame(self.root)
self.StartButton = tk.Button(self.ButtonFrame, text="Start", command=self.start_button_callback, width='8')
self.StartButton.grid(row=0, column=0)
self.StartButton.grid(row=1, column=0)
self.StopButton = tk.Button(self.ButtonFrame, text="Stop", command=self.stop_button_callback, width='8',
state=tk.DISABLED)
self.StopButton.grid(row=0, column=1)
self.StopButton.grid(row=1, column=1)
self.ButtonFrame.grid(row=3, column=0, columnspan=2)