日本工资明细转换工具
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536
  1. import os
  2. import sys
  3. import tkinter as tk
  4. from app import ExcelConverterApp
  5. import openpyxl
  6. from copy import copy
  7. def main():
  8. """
  9. Main entry point for the Excel Converter application.
  10. """
  11. # Create the main window
  12. root = tk.Tk()
  13. root.title("日本工资明细转换工具")
  14. # Set window icon if available
  15. if os.path.exists("icon.ico"):
  16. root.iconbitmap("icon.ico")
  17. # Create and run the application
  18. app = ExcelConverterApp(root)
  19. # Center window on screen
  20. window_width = 800
  21. window_height = 600
  22. screen_width = root.winfo_screenwidth()
  23. screen_height = root.winfo_screenheight()
  24. x = (screen_width - window_width) // 2
  25. y = (screen_height - window_height) // 2
  26. root.geometry(f"{window_width}x{window_height}+{x}+{y}")
  27. # Run the application
  28. root.mainloop()
  29. if __name__ == "__main__":
  30. main()