OPETIA is now running on Python 3.8.
The original draft of OPETIA was developed using Python 2. However, Python 2 is now outdated and not usable. Therefore, all the functions in OPETIA were revised to work using the latest version of Python today, Python 3.8.
The changes involve:
- Replacing import tkFileDialog with from tkinter import filedialog as tkFileDialog
- Using print() with parentheses
- Using os.makedirs() with exist_ok=True for safe directory creation
- Updating Tkinter references to tkinter
- Replacing deprecated methods with appropriate ttk components
- Replacing import Tkinter and import tkFileDialog with from tkinter import * and from tkinter import filedialog, messagebox, ttk (Python 3 update).
- Using os.makedirs(..., exist_ok=True) instead of checking for directory existence before creating it.
- Updating .get() for StringVars instead of accessing .getvalue().
- Using Python 3 function names and conventions (e.g., filedialog.askopenfilename() instead of tkFileDialog.askopenfilename()).