31 lines
875 B
Python
31 lines
875 B
Python
# profileAnalyzer/__main__.py
|
|
|
|
"""
|
|
Main entry point for the Profile Analyzer application.
|
|
"""
|
|
|
|
import tkinter as tk
|
|
import sys
|
|
import os
|
|
|
|
# This block ensures that the 'core' and 'gui' modules can be found
|
|
# when running the script directly. It adds the parent directory of
|
|
# 'profileAnalyzer' to the Python path.
|
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
|
|
|
from profileanalyzer.gui.gui import ProfileAnalyzerGUI
|
|
from profileanalyzer.core.core import ProfileAnalyzer
|
|
|
|
def main():
|
|
"""Initializes and runs the Tkinter application."""
|
|
root = tk.Tk()
|
|
|
|
# The ProfileAnalyzerGUI is a tk.Frame, so it needs a master window.
|
|
# It will automatically pack itself into the root window.
|
|
app = ProfileAnalyzerGUI(master=root)
|
|
|
|
# Start the Tkinter event loop
|
|
root.mainloop()
|
|
|
|
if __name__ == "__main__":
|
|
main() |