Each button is assigned an "OnEvent" method that is triggered when the user clicks on it. The script defines a class named "MyGui_Create" that creates a GUI and adds buttons to it. Overall, the script provides an easy-to-use interface for creating and managing virtual environments and packaging Python scripts.Ĭode: Select all Place in folder where you'd like py venv or installers The "ControlSendTextToCMD" method sends text to the command prompt window, and the "sendEnter" method sends an "Enter" key press to the window. The "findNearest_venv_Folder" method is used to find the nearest virtual environment folder. The "activator" method is used to activate the command prompt window and run a batch file to activate the virtual environment. If it has not been launched, it is launched. The "has_command_window_been_launched" method is used to check whether the command prompt window has been launched or not. ![]() These methods contain commands to launch virtual environments and run the different packaging tools. This is an AutoHotkey script that creates a GUI and provides buttons to launch and create Python virtual environments and run different packaging tools such as Nuitka, AutoPytoEXE, CXFreeze, and PyInstaller. I felt sharing for both use cases would be helpful. ![]() This was an effort to learn the basics for- and reference to using Class Based GUIs with tons of documentation and ControlSend methods.
0 Comments
Leave a Reply. |