feat: 改进对象系统

This commit is contained in:
2026-01-01 20:18:18 +08:00
parent 94839c6369
commit 9b32a01a10
39 changed files with 682 additions and 180 deletions

View File

@@ -1,5 +1,5 @@
"""关于界面
"""
"""关于界面"""
from textual.app import ComposeResult
from textual.containers import ScrollableContainer
from textual.screen import Screen

View File

@@ -1,5 +1,5 @@
"""仪表盘界面
"""
"""仪表盘界面"""
import pathlib
from textual.app import ComposeResult
@@ -62,7 +62,8 @@ class DashboardScreen(Screen):
Returns:
dict: 包含显示文本的字典,键为行号
"""
from heurams.kernel.repository.particle_loader import load_electron, load_nucleon
from heurams.kernel.repository.particle_loader import (load_electron,
load_nucleon)
result = {}
filestem = pathlib.Path(filename).stem

View File

@@ -1,2 +1 @@
"""笔记界面
"""
"""笔记界面"""

View File

@@ -1,2 +1 @@
"""整体式记忆工作界面
"""
"""整体式记忆工作界面"""

View File

@@ -1,5 +1,5 @@
"""队列式记忆工作界面
"""
"""队列式记忆工作界面"""
from enum import Enum, auto
from textual.app import ComposeResult
@@ -8,8 +8,8 @@ from textual.reactive import reactive
from textual.screen import Screen
from textual.widgets import Button, Footer, Header, Label, Static
import heurams.kernel.particles as pt
import heurams.kernel.evaluators as pz
import heurams.kernel.particles as pt
from heurams.context import config_var
from heurams.kernel.reactor import *
from heurams.services.logger import get_logger

View File

@@ -1,5 +1,5 @@
"""缓存工具界面
"""
"""缓存工具界面"""
import pathlib
from textual.app import ComposeResult

View File

@@ -1,5 +1,5 @@
"""记忆准备界面
"""
"""记忆准备界面"""
from textual.app import ComposeResult
from textual.containers import ScrollableContainer
from textual.reactive import reactive

View File

@@ -1,2 +1 @@
""""前进电台" 界面
"""
""" "前进电台" 界面"""

View File

@@ -1,5 +1,5 @@
"""仓库创建向导界面
"""
"""仓库创建向导界面"""
from pathlib import Path
import toml

View File

@@ -1,5 +1,5 @@
"""同步工具界面
"""
"""同步工具界面"""
import pathlib
import time