moved files to subfolder, added class name for icon
This commit is contained in:
@@ -21,7 +21,7 @@ class Config:
|
||||
"""
|
||||
self.parser = ConfigParser()
|
||||
|
||||
self.config_file_name = "config.ini"
|
||||
self.config_file_name = "files/config.ini"
|
||||
self.root_path = os.path.dirname(os.path.abspath(__file__))
|
||||
self.config_file = os.path.join(self.root_path, self.config_file_name)
|
||||
|
||||
@@ -57,7 +57,7 @@ class Application:
|
||||
self.current_record: int | None = None
|
||||
|
||||
# json vars
|
||||
self.json_file_name = "address_data.json"
|
||||
self.json_file_name = "files/address_data.json"
|
||||
self.root_path = os.path.dirname(os.path.abspath(__file__))
|
||||
self.json_file = os.path.join(self.root_path, self.json_file_name)
|
||||
|
||||
@@ -66,7 +66,7 @@ class Application:
|
||||
y_offset = 400
|
||||
title = "Brovski Adress-Etiketten Verwaltung"
|
||||
|
||||
self.root = tk.Tk()
|
||||
self.root = tk.Tk(className="BrovskiAdressEtiketten")
|
||||
self.root.title(title)
|
||||
self.root.geometry(f"+{x_offset}+{y_offset}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user