Skip to content

Commit

Permalink
Part 1 of 2: Addressing Comments
Browse files Browse the repository at this point in the history
This commit removes the customtkinter dependency from experiment_database.py

Signed-off-by: moshernoah <88799553+moshernoah@users.noreply.github.com>
  • Loading branch information
moshernoah authored Oct 2, 2024
1 parent 03c523e commit 6160ee3
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions databases/experiment_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import sqlite3
import os
import csv
from customtkinter import CTk, CTkLabel, CTkButton

class ExperimentDatabase:
'''SQLite Database Object for Experiments.'''
Expand Down Expand Up @@ -494,19 +493,5 @@ def export_all_tables_to_csv(self, export_dir="exports"):

print("All tables have been exported successfully.")

# Once export is done, show the success notification
self.show_success_notification()

def show_success_notification(self):
'''Displays a success notification when export is complete.'''
notification = CTk() # Create a new window
notification.title("Export Successful")
notification.geometry("300x100") # Set the window size

label = CTkLabel(notification, text="Export to CSV was successful!", pady=20)
label.pack()

ok_button = CTkButton(notification, text="OK", command=notification.destroy)
ok_button.pack(pady=10)

notification.mainloop()

0 comments on commit 6160ee3

Please sign in to comment.