Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gui methods #221

Merged
merged 7 commits into from Jul 31, 2023
Merged

gui methods #221

merged 7 commits into from Jul 31, 2023

Conversation

spyoungtech
Copy link
Owner

This PR adds some of the GUI methods from AutoHotkey. Namely:

  • msg_box as an analog for AHK's MsgBox
  • input_box as an analog for AHK's InputBox
  • file_select_box as an analog for AHK's FileSelectFile
  • folder_select_box as an analog for AHK's FileSelectFolder

This PR does not implement the broader Gui functions. Because AHK lacks true threading, while AHK is reading stdin for new commands, no other activity can occur in the AHK process. This means that GUI dialogs will fail to respond to user input (causing Windows to indicate 'the application is not responding'). This could be worked around in a similar manner to how we handle hotkeys in a separate process for the same reason -- however, this is decidedly not planned. Python has far more robust options for GUI libraries that users can easily compose into their Python applications.

Closes #11

@coveralls
Copy link

coveralls commented Jul 31, 2023

Coverage Status

coverage: 74.8% (-0.3%) from 75.084% when pulling 4fc794d on gui into 0feb2d1 on main.

@spyoungtech spyoungtech merged commit cc95ca3 into main Jul 31, 2023
11 checks passed
@spyoungtech spyoungtech deleted the gui branch July 31, 2023 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature/GUI
2 participants