@@ -127,7 +127,8 @@ icon_path = Path(__file__).parent.parent.parent / "src" / "gui" / "FileLauncher
127127prompt_icon_image = Image .open (icon_path )
128128photo = ImageTk .PhotoImage (prompt_icon_image )
129129fl .wm_iconphoto (False , photo )
130- root .wm_iconphoto (False , photo )
130+ root .wm_iconphoto (
131+ False , photo )
131132
132133print ("[FileLauncher" + app_version + "]: " + "Master FileLauncher.ico created!" )
133134
@@ -285,33 +286,72 @@ general_content_progress_bar_text = ttk.Label(general, text=process_name, backgr
285286general_content_progress_bar_text .pack (pady = 5 , padx = 20 , fill = "x" )
286287
287288# Visual Bar:
288- general_content_progress_bar = ttk .Progressbar (general , orient = "horizontal" , length = 300 , mode = "determinate" )
289- general_content_progress_bar .pack (pady = 5 , padx = 10 , anchor = "w" )
289+ # general_content_progress_bar = ttk.Progressbar(general, orient="horizontal", length=300, mode="determinate")
290+ # general_content_progress_bar.pack(pady=5, padx=10, anchor="w")
290291
291292# Progress Bar Test Task:
292- def start_task ():
293- general_content_progress_bar ['value' ] = 0
294- process_name = "Test Process:"
295- general_content_progress_bar_text .config (text = process_name )
296- for i in range (5 ):
297- time .sleep (1 )
298- general_content_progress_bar ['value' ] += 20
299- general .update_idletasks ()
300- time .sleep (1 )
301- process_name = " "
302- general_content_progress_bar_text .config (text = process_name )
293+ # def start_task():
294+ # general_content_progress_bar['value'] = 0
295+ # process_name = "Test Process:"
296+ # general_content_progress_bar_text.config(text=process_name)
297+ # for i in range(5):
298+ # time.sleep(1)
299+ # general_content_progress_bar['value'] += 20
300+ # general.update_idletasks()
301+ # time.sleep(1)
302+ # process_name = " "
303+ # general_content_progress_bar_text.config(text=process_name)
304+
305+ # Catapult Animations:
306+
307+ # Texture Directory Mappings:
308+ textures_path = assets_dir / "photos"
309+
310+ catapult_pos1_empty = str (textures_path / "pos1_empty.png" )
311+ catapult_pos2_empty = str (textures_path / "pos2_empty.png" )
312+ catapult_pos3_empty = str (textures_path / "pos3_empty.png" )
313+ catapult_pos4_empty = str (textures_path / "pos4_empty.png" )
314+
315+ catapult_pos1_loaded = str (textures_path / "pos1_loaded.png" )
316+ catapult_pos2_loaded = str (textures_path / "pos2_loaded.png" )
317+ catapult_pos3_loaded = str (textures_path / "pos3_loaded.png" )
318+ catapult_pos4_loaded = str (textures_path / "pos4_loaded.png" )
319+
320+ uploads_dir = current_dir .parent / "uploads"
321+
322+ image_catapult_pos1_empty = tk .PhotoImage (file = catapult_pos1_empty )
323+ # Initial Texture Load:
324+ general_catapult = tk .Label (general , image = image_catapult_pos1_empty , padx = 20 , pady = 50 , justify = "right" , background = WIN95_GRAY )
325+ general_catapult .pack (padx = 5 , pady = 5 )
326+
327+
328+ # Files in Uploads Directory check:
329+ def are_there_files_ready (y_or_n ):
330+ if any (uploads_dir .iterdir ()):
331+ general_catapult .configure (image = catapult_pos1_loaded )
332+ return True
333+ else :
334+ return False
335+
336+
337+
303338
304339
340+ # (To be repurposed for the launch button) VVV
305341# Progress Bar Test Button:
306- btn = tk .Button (general , text = "Test Pbar" , command = start_task )
307- btn .pack ()
342+ # btn = tk.Button(general, text="Test Pbar", command=start_task)
343+ # btn.pack()
344+
345+
346+
347+
308348
309349def close_app ():
310350 fl .destroy ()
311351 root .destroy ()
312- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
352+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
313353
314- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~USER TAB~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
354+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~USER TAB~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
315355
316356# User Tab Title
317357user_content_title = ttk .Label (user , background = WIN95_GRAY , text = "User Profile: " , anchor = "w" , justify = "left" , font = WIN95_BOLD_FONT )
0 commit comments