MoleditPy 3.5.1__tar.gz → 3.5.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {moleditpy-3.5.1 → moleditpy-3.5.2}/PKG-INFO +1 -1
- {moleditpy-3.5.1 → moleditpy-3.5.2}/pyproject.toml +1 -1
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/MoleditPy.egg-info/PKG-INFO +1 -1
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/main_window_init.py +6 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/utils/default_settings.py +2 -13
- {moleditpy-3.5.1 → moleditpy-3.5.2}/LICENSE +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/README.md +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/setup.cfg +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/MoleditPy.egg-info/SOURCES.txt +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/MoleditPy.egg-info/dependency_links.txt +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/MoleditPy.egg-info/entry_points.txt +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/MoleditPy.egg-info/requires.txt +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/MoleditPy.egg-info/top_level.txt +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/__init__.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/__main__.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/assets/file_icon.ico +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/assets/icon.icns +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/assets/icon.ico +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/assets/icon.png +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/core/__init__.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/core/mol_geometry.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/core/molecular_data.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/main.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/plugins/__init__.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/plugins/plugin_interface.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/plugins/plugin_manager.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/plugins/plugin_manager_window.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/__init__.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/about_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/align_plane_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/alignment_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/analysis_window.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/angle_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/app_state.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/atom_item.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/atom_picking.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/base_picking_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/bond_item.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/bond_length_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/calculation_worker.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/color_settings_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/compute_logic.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/constrained_optimization_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/custom_interactor_style.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/custom_qt_interactor.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/dialog_3d_picking_mixin.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/dialog_logic.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/dihedral_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/edit_3d_logic.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/edit_actions_logic.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/export_logic.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/geometry_base_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/io_logic.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/main_window.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/mirror_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/molecular_scene_handler.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/molecule_scene.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/move_group_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/periodic_table_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/planarize_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/settings_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/settings_tabs/__init__.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/settings_tabs/settings_2d_tab.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/settings_tabs/settings_3d_tabs.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/settings_tabs/settings_other_tab.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/settings_tabs/settings_tab_base.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/string_importers.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/template_preview_item.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/template_preview_view.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/translation_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/ui_manager.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/user_template_dialog.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/view_3d_logic.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/ui/zoomable_view.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/utils/__init__.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/utils/constants.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/utils/sip_isdeleted_safe.py +0 -0
- {moleditpy-3.5.1 → moleditpy-3.5.2}/src/moleditpy/utils/system_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MoleditPy
|
|
3
|
-
Version: 3.5.
|
|
3
|
+
Version: 3.5.2
|
|
4
4
|
Summary: A cross-platform, simple, and intuitive molecular structure editor built in Python. It allows 2D molecular drawing and 3D structure visualization. It supports exporting structure files for input to DFT calculation software.
|
|
5
5
|
Author-email: HiroYokoyama <titech.yoko.hiro@gmail.com>
|
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MoleditPy
|
|
3
|
-
Version: 3.5.
|
|
3
|
+
Version: 3.5.2
|
|
4
4
|
Summary: A cross-platform, simple, and intuitive molecular structure editor built in Python. It allows 2D molecular drawing and 3D structure visualization. It supports exporting structure files for input to DFT calculation software.
|
|
5
5
|
Author-email: HiroYokoyama <titech.yoko.hiro@gmail.com>
|
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
|
@@ -613,12 +613,18 @@ class MainInitManager:
|
|
|
613
613
|
)
|
|
614
614
|
|
|
615
615
|
def save_settings(self) -> None:
|
|
616
|
+
if (
|
|
617
|
+
not self.host.init_manager.settings_dirty
|
|
618
|
+
or self.host.init_manager.settings == self.host.initial_settings
|
|
619
|
+
):
|
|
620
|
+
return
|
|
616
621
|
try:
|
|
617
622
|
if not os.path.exists(self.host.init_manager.settings_dir):
|
|
618
623
|
os.makedirs(self.host.init_manager.settings_dir)
|
|
619
624
|
with open(self.host.init_manager.settings_file, "w", encoding="utf-8") as f:
|
|
620
625
|
json.dump(self.host.init_manager.settings, f, indent=4)
|
|
621
626
|
self.host.init_manager.settings_dirty = False
|
|
627
|
+
self.host.initial_settings = self.host.init_manager.settings.copy()
|
|
622
628
|
except (AttributeError, RuntimeError, ValueError) as e:
|
|
623
629
|
print(f"Error saving settings: {e}")
|
|
624
630
|
|
|
@@ -19,7 +19,6 @@ DEFAULT_SETTINGS = {
|
|
|
19
19
|
"specular_power": 20,
|
|
20
20
|
"light_intensity": 1.0,
|
|
21
21
|
"show_3d_axes": True,
|
|
22
|
-
"show_chiral_labels": False,
|
|
23
22
|
# --- 3D Model Parameters (Ball and Stick) ---
|
|
24
23
|
"ball_stick_atom_scale": 1.0,
|
|
25
24
|
"ball_stick_bond_radius": 0.1,
|
|
@@ -33,7 +32,6 @@ DEFAULT_SETTINGS = {
|
|
|
33
32
|
# --- 3D Model Parameters (CPK) ---
|
|
34
33
|
"cpk_atom_scale": 1.0,
|
|
35
34
|
"cpk_resolution": 32,
|
|
36
|
-
"cpk_colors": {},
|
|
37
35
|
# --- 3D Model Parameters (Wireframe) ---
|
|
38
36
|
"wireframe_bond_radius": 0.02,
|
|
39
37
|
"wireframe_resolution": 6,
|
|
@@ -58,12 +56,9 @@ DEFAULT_SETTINGS = {
|
|
|
58
56
|
"optimize_intermolecular_interaction_rdkit": True,
|
|
59
57
|
"skip_chemistry_checks": False,
|
|
60
58
|
"always_ask_charge": False,
|
|
61
|
-
# ---
|
|
62
|
-
"use_high_fidelity_selection": True,
|
|
63
|
-
"selection_color": "#FFD700",
|
|
64
|
-
"high_quality_meshing": True,
|
|
65
|
-
"atom_label_color": "#000000",
|
|
59
|
+
# --- Color ---
|
|
66
60
|
"bond_color": "#808080",
|
|
61
|
+
"cpk_colors": {},
|
|
67
62
|
# --- 2D Settings ---
|
|
68
63
|
"bond_width_2d": 2.0,
|
|
69
64
|
"bond_spacing_double_2d": 3.5,
|
|
@@ -79,10 +74,4 @@ DEFAULT_SETTINGS = {
|
|
|
79
74
|
"template_fusing_enabled_2d": True,
|
|
80
75
|
"template_fusing_distance_2d": 14.0,
|
|
81
76
|
"template_snapping_distance_2d": 14.0,
|
|
82
|
-
# --- Application Session / UI State ---
|
|
83
|
-
"theme": "light",
|
|
84
|
-
"window_size": [1200, 800],
|
|
85
|
-
"window_position": [100, 100],
|
|
86
|
-
"splitter_sizes": [600, 600],
|
|
87
|
-
"last_dir": "",
|
|
88
77
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|