日本工资明细转换工具
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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