Skip to content

Commit

Permalink
save before test
Browse files Browse the repository at this point in the history
  • Loading branch information
edouardbruelhart committed Apr 12, 2024
1 parent 1b9536e commit 618e7b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ms_sample_list_creator/csv_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, csv_batch_window: tk.Toplevel, root: tk.Tk):
self.file = str(os.environ.get("FILE"))
self.current_position = 1
self.current_row = 1
self.timestamp = "202404101527"#datetime.now().strftime("%Y%m%d%H%M")
self.timestamp = "202404101527" # datetime.now().strftime("%Y%m%d%H%M")
self.csv_path = f"{self.output_folder}/{datetime.now().strftime('%Y%m%d')}_{self.operator}_dbgi_{self.file}.csv"

self.warning_label = tk.Label(
Expand Down
13 changes: 6 additions & 7 deletions ms_sample_list_creator/ms_sample_list_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

import tkinter as tk

from csv_batch import csvBatch # type: ignore[import-not-found]
from home_page import HomeWindow # type: ignore[import-not-found]
from new_batch import newBatch # type: ignore[import-not-found]
import home_page # type: ignore[import-not-found]
import csv_batch # type: ignore[import-not-found]
import new_batch # type: ignore[import-not-found]


def submit_results(clicked_button: str) -> None:
Expand All @@ -29,7 +29,6 @@ def submit_results(clicked_button: str) -> None:
def handle_user_choice() -> None:
"""
Collect user choice and transmits it to de function that shows the correct window.
;C:\users\edouard\Local Settings\Application Data\Programs\Python\Python38\Scripts
Args:
None
Expand All @@ -49,14 +48,14 @@ def show_selected_window(choice: str) -> None:
new_batch_window = tk.Toplevel(root)
new_batch_window.title("Create new batch")
# Show the window for a new batch
newBatch(new_batch_window, root)
new_batch.newBatch(new_batch_window, root)
elif choice == "csv":
# Create a new Toplevel window for the new batch
csv_batch_window = tk.Toplevel(root)
csv_batch_window.minsize(300, 200)
csv_batch_window.title("Import csv batch")
# Show the window for a new batch
csvBatch(csv_batch_window, root)
csv_batch.csvBatch(csv_batch_window, root)
else:
# Handle the case of an unknown choice
print("Unknown error, please try again with other parameters.")
Expand All @@ -68,7 +67,7 @@ def show_selected_window(choice: str) -> None:
root.minsize(600, 600)

# Create an instance of the HomeWindow class
home_page = HomeWindow(root)
home_page = home_page.HomeWindow(root)

# Display the HomeWindow
home_page.pack()
Expand Down

0 comments on commit 618e7b2

Please sign in to comment.