摘要: UG 2406 python 二次开发环境配置 项目地址 https://gitee.com/unm001/nx2406.git 安装python 安装 python 3.10.11 D:\prog\python\python310 新建 python 项目文件夹 在 E:\work\UG 下拉取 阅读全文
posted @ 2024-07-04 11:28 方头狮 阅读(612) 评论(0) 推荐(0)
摘要: NX 二次开发 PYTHON VSCODE 环境配置 我电脑上装的是WIN11 NX1988 在电脑的UG的安装文件夹内找到 python 一般在 xx\NXBIN 在所在的文件夹内,运行python 可以找到版本信息。 在电脑上装版本高度相同的 python 包括大版本和小版本 在UGii 文件夹 阅读全文
posted @ 2022-03-14 14:30 方头狮 阅读(2478) 评论(1) 推荐(1)
摘要: import asyncio import time from threading import Thread, Lock from typing import Any, Callable, Awaitable, Generic, TypeVar, ParamSpec from types impo 阅读全文
posted @ 2025-05-12 11:49 方头狮 阅读(4) 评论(0) 推荐(0)
摘要: 效果 直接上代码 from PySide6.QtWidgets import ( QGridLayout, QGroupBox, QHBoxLayout, QVBoxLayout, QApplication, QWidget, QLabel, QScrollArea, ) from PySide6. 阅读全文
posted @ 2025-05-10 17:52 方头狮 阅读(12) 评论(0) 推荐(0)
摘要: 部分心得 流体仿真 2D网格在表面上可以给后续的3D网格提供指引 网格划分的先后顺序影响网格的划分结果 利用自动配对"可以把不同的网格,按接触面整台 网格控制可以设定边上节点数,用以控制粒度 操作过程 实体建模 流体腔 分割不同块 设置不同块之间接触面的连接。用 "网格配对命令" 设置重点边上的节点 阅读全文
posted @ 2025-04-18 15:15 方头狮 阅读(4) 评论(0) 推荐(0)
摘要: 有意思的是把数据model独立出来的写法 txt_syc可以绑定多个lineedit,其中一个文字发生更改后,其它的会同时改动。 txt_syc可以connect信号接收器,当自己的值发生改变后,接收器会执行一此操作。 txt_syc可以更改自己的值,相当的ui和函数可以自动触发。 from PyS 阅读全文
posted @ 2025-04-02 12:02 方头狮 阅读(16) 评论(0) 推荐(0)
摘要: import asyncio from threading import Thread, Event class wk: def __init__(self): self.th: Thread self.loop = asyncio.new_event_loop() def _cancel_all( 阅读全文
posted @ 2025-03-26 17:33 方头狮 阅读(1) 评论(0) 推荐(0)
摘要: from tkinter import Tk, Listbox, Button, Label import os class tker(Tk): pip_source = { "清华大学": "https://pypi.tuna.tsinghua.edu.cn/simple/", "阿里云": "h 阅读全文
posted @ 2024-07-03 01:20 方头狮 阅读(29) 评论(0) 推荐(0)
摘要: qchart 和 qchartview 的运用的例子 qchart 存在一些问题 一般用在2000个点以下的场景,点多了,就会卡。 解决的办法就是 开启opengl加速。 但这时,对qchartview 进行transform 时, 绘制的点,并不能同时变换。原因是QT把opengl的图案是单独绘制 阅读全文
posted @ 2024-01-08 14:30 方头狮 阅读(175) 评论(0) 推荐(0)
摘要: 一种整合的PYQT写法 ,自己瞎写的 import sys from PySide6 import QtCore as qc from PySide6 import QtWidgets as qw from PySide6 import QtGui as qg from typing import 阅读全文
posted @ 2023-10-11 13:50 方头狮 阅读(22) 评论(0) 推荐(0)
摘要: ```python from nicegui import ui from ex4nicegui.reactive import rxui from ex4nicegui import to_ref,ref_computed class page_data: def __init__(self) - 阅读全文
posted @ 2023-07-12 12:51 方头狮 阅读(743) 评论(0) 推荐(0)