Fleshing out rewrite

This commit is contained in:
2022-08-27 23:24:12 -05:00
parent 55515a0825
commit c8a62f2781
11 changed files with 1781 additions and 45 deletions

View File

@@ -17,10 +17,28 @@ class ControlMixin:
def type(self, key):
pyautogui.typewrite(key)
def enter(self, widget = None, data = None):
pyautogui.press("enter")
def backspace(self, widget = None, data=None):
pyautogui.press("backspace")
def press_special_keys(self, key):
if key in ["Backspace", "Enter", "Esc", "Tab", "Space", "Del", "Up", "Down", "Left", "Right", "PrtSc"]:
pyautogui.press(key.lower())
return True
for i in range(1, 13):
fkey = 'F' + str(i)
if key == fkey:
pyautogui.press(key.lower())
return True
return False
# def typeString(self, widget = None, data = None):
# text = self.autoTypeField.get_text()