ui fix: start button and andoid ip label, fixed shorcut

This commit is contained in:
DESKTOP-JVKHS7I\Adam 2020-04-23 14:21:28 +05:30
parent 379d8ac4bf
commit 36daacbf42
4 changed files with 4 additions and 7 deletions

Binary file not shown.

View File

@ -1,2 +1,2 @@
from fishy.__main__ import main
__version__ = "0.2.6"
__version__ = "0.2.8"

View File

@ -45,12 +45,11 @@ class Fishy:
FishingMode("look", 2, LookEvent())
FishingMode("idle", 3, IdleEvent(ip != ""))
logging.info("Starting the bot engine, look at the fishing hole to start fishing")
self.fishPixWindow = Window(color=cv2.COLOR_RGB2HSV)
# check for game window and stuff
self.gui.call(GUIFunction.STARTED, (True,))
logging.info("Starting the bot engine, look at the fishing hole to start fishing")
Thread(target=wait_and_check).start()
while self.start:
# Services to be ran in the start of the main loop
@ -116,8 +115,6 @@ def initialize(c: Config, gui):
sys.excepthook = helper.unhandled_exception_logging
def wait_and_check():
time.sleep(10)
if not G.FishingStarted:

View File

@ -116,7 +116,7 @@ class GUI:
# region controls
left_frame = Frame(controls_frame)
# Label(left_frame, text="Android IP").grid(row=0, column=0)
Label(left_frame, text="Android IP").grid(row=0, column=0)
ip = Entry(left_frame)
ip.insert(0, self.config.get("ip", ""))
ip.grid(row=0, column=1)
@ -182,7 +182,7 @@ class GUI:
if func[0] == GUIFunction.LOG:
self._write_to_console(func[1][0])
elif func[0] == GUIFunction.STARTED:
# self._bot_running = func[1][0]
self._bot_running = func[1][0]
self.start_button["text"] = "STOP" if self._bot_running else "START"
elif func[0] == GUIFunction.ASK_DIRECTORY:
messagebox.showinfo("Directory?", func[1][1])