feat: 改进粒子对象

This commit is contained in:
2026-01-01 06:36:27 +08:00
parent eaa38fb880
commit 573bf22b2b
19 changed files with 74 additions and 133 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
"""关于界面
"""
from textual.app import ComposeResult
from textual.containers import ScrollableContainer
from textual.screen import Screen

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
"""仪表盘界面
"""
import pathlib
from textual.app import ComposeResult
@@ -187,7 +188,7 @@ class DashboardScreen(Screen):
button_id = event.button.id
if button_id == "new_nucleon_button":
from .nucreator import NucleonCreatorScreen
from .repocreator import NucleonCreatorScreen
new_screen = NucleonCreatorScreen()
self.app.push_screen(new_screen)

View File

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

View File

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

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
"""队列式记忆工作界面
"""
from enum import Enum, auto
from textual.app import ComposeResult

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
"""缓存工具界面
"""
import pathlib
from textual.app import ComposeResult

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
"""记忆准备界面
"""
from textual.app import ComposeResult
from textual.containers import ScrollableContainer
from textual.reactive import reactive
@@ -130,7 +131,7 @@ class PreparationScreen(Screen):
if left_new >= 0:
atoms_to_provide.append(i)
logger.debug(f"ATP: {atoms_to_provide}")
from .memorizor import MemScreen
from .memoqueue import MemScreen
memscreen = MemScreen(atoms_to_provide)
self.app.push_screen(memscreen)

View File

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

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
"""仓库创建向导界面
"""
from pathlib import Path
import toml

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python3
"""同步工具界面
"""
import pathlib
import time