Skip to content

Commit

Permalink
Fix: Correctly Set Decimal Separator in Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelVorndran committed Sep 17, 2024
1 parent 0a62d50 commit 86d1249
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CellLocator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ def on_resource_dropdown_change(event_value):


def open_settings():
#print("Settings")

config.read('config.ini')

new_window = tk.Toplevel()
Expand Down Expand Up @@ -1307,7 +1307,8 @@ def on_csv_decimal_dropdown_change(event_value):
csv_decimal_label.pack(padx=5, anchor='w')

csv_decimal_dropdown = ctk.CTkComboBox(csv_decimal_frame, values=csv_decimal_options, command=on_csv_decimal_dropdown_change)
#csv_decimal_dropdown.set(selected_value)
csv_decimal_dropdown_value = config['DEFAULT'].get('csv_decimal')
csv_decimal_dropdown.set(csv_decimal_dropdown_value)
csv_decimal_dropdown.pack(pady=(5,50), padx=5, anchor='w')


Expand All @@ -1333,14 +1334,13 @@ def save_settings():


def main():
root = ctk.CTk() # Create a customtkinter root window
root.title("CellLocator v0.9.1")
root = ctk.CTk()
root.title("CellLocator v0.9.2")
root.geometry('300x370')

CA = CellAnalyzer()

custom_font = tkfont.Font(size=14)
#menubar = tk.Menu(root, font=custom_font)
menubar = Menu(root)

def open_qs():
Expand All @@ -1349,7 +1349,7 @@ def open_qs():

# Attempt to open the manual
try:
os.startfile(pdf_path) # OS-appropriate way to open files
os.startfile(pdf_path)
except OSError:
print("Error: Could not open PDF file. Check if it exists and you have a PDF reader.")

Expand All @@ -1359,13 +1359,13 @@ def open_manual():

# Attempt to open the manual
try:
os.startfile(pdf_path) # OS-appropriate way to open files
os.startfile(pdf_path)
except OSError:
print("Error: Could not open PDF file. Check if it exists and you have a PDF reader.")


def open_github():
github_url = "https://github.com/MichaelVorndran" # Replace with your actual URL
github_url = "https://github.com/MichaelVorndran/CellLocator"
webbrowser.open(github_url)

def on_use_denoiser():
Expand Down

0 comments on commit 86d1249

Please sign in to comment.