MultiApp Opener

A GUI that enables the user to open more than one app using a single button.

Building this software, this might be useful for people who multitask and use different application to begin their work. In order to make things easier, The GUI provides a list of the user's applications it uses. With one single button, all the applications that the user chooses will be open at the same time with having to go through files or tapping the icons from the desktop.

Here I used Python to build the software along with some API's such as tkinter, os, Text, and fileDialog.

Snippet of Python Code


import tkinter as tk
from tkinter import filedialog, Text
import os

root = tk.Tk()
appsCollected = []

if os.path.isfile('save.txt'):
	with open('save.txt', 'r') as exe:
		tempFile = exe.read()
		tempFile = tempFile.split(',')
		appsCollected = [x for x in tempFile if x.strip()]

def addApplications():
	for widget in frame.winfo_children():
		widget.destroy()

	appName = filedialog.askopenfilename(initialdir="/", title="Select File",
	filetypes=(("executables","*.exe"),("All Files", "*.*")))

	appsCollected.append(appName)
	print(appName)
	for mainAppOpener in appsCollected:
		label = tk.Label(frame, text=mainAppOpener, bg="grey")
		label.pack() 
										

As the program runs a canvas opens up and views the files that have been opened. The user can then eliminate any application on the list that doesn't want to run.


def runApplicaitons():
for mainAppOpener in appsCollected:
	os.startfile(mainAppOpener)

canvas = tk.Canvas(root, height=500, width=500, bg="#263D42")
canvas.pack()

frame = tk.Frame(root, bg="white")
frame.place(relwidth=0.8, relheight=0.8, relx=0.1, rely=0.1)

openFile = tk.Button(root, text="Open File", padx=10, pady=5, fg="white", bg="grey", command=addApplications)
openFile.pack()

runFiles = tk.Button(root, text="Run File(s)", padx=10, pady=5, fg="white", bg="grey", command=runApplicaitons)
runFiles.pack()
																		
							

In summary, this software is targeted for users who multitask and use multiple application at once. Even so it is much easier for anyone who would want to open different applications with a single button.