Skip to content

Commit

Permalink
replaced the Help with tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
None authored and None committed May 23, 2023
1 parent 3cef492 commit c028680
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 87 deletions.
11 changes: 5 additions & 6 deletions MiniPyFlyff.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import globalVariables
import keyboardListener
import macroLoop
import helpWindow
import os
import saveConfigs
import toolControl
Expand All @@ -19,7 +18,7 @@ def gt_checkbutton_state():


def create_tooltip(widget, text):
balloon = tix.Balloon(widget)
balloon = tix.Balloon(widget, initwait=1)
balloon.bind_widget(widget, balloonmsg=text)


Expand All @@ -29,9 +28,7 @@ def create_tooltip(widget, text):

menu = Menu(menu_bar, tearoff=0)

menu.add_command(label="Help", command=lambda: helpWindow.open_help())

menu.add_command(label="Save Keys", command=lambda: saveConfigs.save_key_configs(entry_alt_control_keys,
menu.add_command(label="Save Config", command=lambda: saveConfigs.save_key_configs(entry_alt_control_keys,
entry_macro_loop_key,
entry_macro_loop_delays,
entry_macro_loop_shortcut,
Expand Down Expand Up @@ -126,7 +123,7 @@ def create_tooltip(widget, text):

checkbutton_macro_loop = Checkbutton(frame_macro_loop_checkbutton, text="Random Delays", variable=checkbox_var)
checkbutton_macro_loop.pack(side=LEFT, padx=1, pady=1)
create_tooltip(entry_macro_loop_shortcut, "Create random delay(s) for each macro loop key(s) interaction")
create_tooltip(checkbutton_macro_loop, "Create random delay(s) for each macro loop key(s) interaction")

frame_macro_loop_buttons = Frame(root)
frame_macro_loop_buttons.pack(fill=X, padx=1, pady=1)
Expand Down Expand Up @@ -191,11 +188,13 @@ def create_tooltip(widget, text):
button_buffer_disable_enable = Button(frame_buffer_4, text="Enable", width=10)
button_buffer_disable_enable.pack(side=RIGHT, padx=1, pady=1)
button_buffer_disable_enable.config(command=lambda: toolControl.enable_disable_buffer(button_buffer_disable_enable))
create_tooltip(button_buffer_disable_enable, "Enable/Disable the Buffer")

button_buffer_start_stop = Button(frame_buffer_4, text="Start", width=10)
button_buffer_start_stop.pack(side=LEFT, padx=1, pady=1)
button_buffer_start_stop.config(
command=lambda: toolControl.start_stop_buffer(button_buffer_start_stop, button_macro_loop_enable_disable))
create_tooltip(button_buffer_start_stop, "Start/Stop the Buffer")

frame_buffer_2 = Frame(root)
frame_buffer_2.pack(fill=X, padx=1, pady=1)
Expand Down
Binary file removed help/help.PNG
Binary file not shown.
81 changes: 0 additions & 81 deletions helpWindow.py

This file was deleted.

0 comments on commit c028680

Please sign in to comment.