This application, Market_sessions.py, is a Python script that utilizes the Tkinter library to create a graphical user interface (GUI) for displaying information about different market sessions in the financial markets.
-
Clone the Repository: Clone or download the repository containing the Market Sessions App script.
-
Install Python: If you haven't already, ensure that Python is installed on your system. You can download Python from the official website.
-
Install Dependencies: Open a terminal or command prompt. Then, run the following command to install the required dependencies:
pip install pillow
- Pillow: This library is required for image processing tasks within the application. It allows the application to handle image files efficiently.
-
Run the Script: After installing the dependencies, you can run the Market Sessions App script by executing the following command in the terminal or command prompt:
python Market_sessions.py
This command will execute the script and launch the Market Sessions App GUI.
If you prefer not to use the terminal to build the app, you can build it using PyInstaller directly.
-
Install PyInstaller (if not already installed): PyInstaller is a tool used to convert Python scripts into standalone executables. If you haven't installed PyInstaller yet, you can do so using pip:
pip install pyinstaller
-
Run PyInstaller to Build the App: Once PyInstaller is installed, navigate to the directory containing the Market_sessions.py script using your file explorer. Then, follow these steps:
-
Step 1: Hold down the
Shiftkey on your keyboard and right-click in the folder containing the script. -
Step 2: From the context menu that appears, select "Open PowerShell window here" or "Open command window here," depending on your system.
-
Step 3: In the PowerShell or command window, run the following command to build the Market Sessions App without opening a terminal/console window:
pyinstaller --onefile --noconsole --add-data "Images;Images" market_sessions.py- --onefile: This option directs PyInstaller to bundle your application, along with all its dependencies, into a single executable file. This is particularly useful for ease of distribution, as it encapsulates everything your application needs to run into one file, eliminating the need for external dependencies to be installed on the target system.
- --noconsole: The --noconsole option is used to suppress the command line console window that typically appears when running a Python application. This is especially relevant for GUI applications where a console window running in the background is unnecessary and potentially confusing for end-users. When this option is included, launching the executable will directly open the application's interface without showing a terminal or command prompt window.
- --add-data: This option allows you to include additional files in the packaged executable that are not automatically detected by PyInstaller. This is crucial for including external resources your application might rely on, such as image files, configuration files, or databases. The syntax requires specifying the source of the files relative to the project directory, followed by the target directory within the executable, separated by a semicolon (;) on Windows or a colon (:) on macOS and Linux. This ensures that your application maintains access to these essential resources when running in its compiled form.
This command will bundle the Python script and its dependencies into a standalone executable file without opening a terminal window when the app is launched.
-
-
Find the Executable: After PyInstaller has finished building the app, you can find the executable file in the
distdirectory within the project directory. The executable file will have the same name as your Python script with an added extension (e.g.,Market_sessions.exeon Windows). -
Run the Executable: You can run the executable file directly from your file explorer by double-clicking on it. This will launch the Market Sessions App without the need for Python or any additional dependencies.
-
PyInstaller may generate additional files and folders during the build process. These are necessary for the executable to run correctly and can usually be ignored.
-
If you encounter any errors during the build process, make sure to check the PyInstaller documentation and troubleshoot accordingly.
-
Remember to distribute the executable file along with any required assets (such as image files) when sharing or deploying the Market Sessions App.
https://www.youtube.com/watch?v=5B19-6fUQoE
If you find this project useful and would like to support further development, you can donate Bitcoin to the following address:
Bitcoin Taproot Address: bc1p3863n5kss37j9zduqnfwrlj59vf5dnvcvccf7rzuujzwcmg6uevqwh92xc
ETH Address: 0x56DC29495FAeB3B4331cE32A2190096C071f18e7
Your contributions will be greatly appreciated and will help in maintaining and improving this project. Thank you for your support!


