-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Kidsnd274/pyinstaller
Pyinstaller
- Loading branch information
Showing
5 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
call .\venv\Scripts\activate.bat | ||
pyinstaller --noconfirm --onedir --windowed --add-data "./MediaAutomationScripts;MediaAutomationScripts/" --add-data "./venv/Lib/site-packages/customtkinter;customtkinter/" --name VerifyVideoGUI main.py | ||
copy .\etc\readme.txt .\dist\VerifyVideoGUI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
You will need python.exe, ffmpeg.exe, and ffprobe.exe in PATH to use all the features of this program. | ||
|
||
Extract the contents of the zip file, including the _internal folder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import customtkinter as ctk | ||
|
||
class WindowDialog(ctk.CTkToplevel): | ||
def __init__(self, parent, message, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
self.parent = parent | ||
self.title("Warning") | ||
self.geometry("250x110") | ||
self.resizable(False, False) | ||
# self.attributes("-toolwindow", True) | ||
|
||
self.label = ctk.CTkLabel(self, text=message) | ||
self.label.pack(padx=20, pady=20) | ||
|
||
self.okay_button = ctk.CTkButton(self, text="Ok", command=self.on_button_event) | ||
self.okay_button.pack() | ||
|
||
# Modal configuration | ||
self.transient(parent) # This makes the dialog a transient window of parent, which means it will minimize and close with the parent window. Also gets rid of the minimize button | ||
self.grab_set() # Prevents input to the main window | ||
self.protocol("WM_DELETE_WINDOW", self.on_button_event) # Handle close button click | ||
|
||
def on_button_event(self): | ||
self.destroy() | ||
self.parent.focus_set() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters