摘要: 一种整合的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 方头狮 阅读(23) 评论(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 方头狮 阅读(760) 评论(0) 推荐(0)
摘要: ```python ## python 3.8 以上 from typing import Dict, List, TypeVar, Tuple, Generic, get_args import json T = TypeVar("T") # 数据的默认值 def get_dft(tp): if 阅读全文
posted @ 2023-05-21 17:17 方头狮 阅读(30) 评论(0) 推荐(0)
摘要: 我的电脑 -> 管理 -> 用户 -> 解除 GUEST 禁用 gpedit.msc -> 计算机管理 -> 本地 -> 从网络上访问本机 -> 允许GUEST 高级共享设置 -> 从网络上访问 选择文件夹 -> 共享 -> 权限 -> 增加GUEST 阅读全文
posted @ 2022-11-21 12:55 方头狮 阅读(550) 评论(0) 推荐(0)
摘要: ![](https://img2022.cnblogs.com/blog/2210499/202209/2210499-20220928190338097-1746299795.png) ![](https://img2022.cnblogs.com/blog/2210499/202209/2210499-20220928191624921-320576571.png) 阅读全文
posted @ 2022-09-28 19:18 方头狮 阅读(26) 评论(0) 推荐(0)
摘要: from typing import Dict import flet from flet import AppBar, ElevatedButton, Page, Text, View, colors class view_fam: def __init__(self, page: Page) - 阅读全文
posted @ 2022-09-24 10:16 方头狮 阅读(68) 评论(0) 推荐(0)
摘要: from typing import List import flet from flet import ( Container, Draggable, DragTarget, Page, Row, Text, alignment, colors, control_event, ) class m_ 阅读全文
posted @ 2022-09-23 01:50 方头狮 阅读(114) 评论(3) 推荐(0)
摘要: import sympy as sp # 椭圆曲线长/短半轴 a, b = sp.symbols("a b") # 假定 第一象限的 1/4 的椭圆 , 可以用 3阶 贝赛尔曲线模拟, 我们假定4个控制点为 p1(0,b),p2(x1,b),p3(a,y1),p4(a,0) p1, p2, p3, 阅读全文
posted @ 2022-08-02 00:58 方头狮 阅读(178) 评论(0) 推荐(0)
摘要: 贝赛尔曲线 的定义,这里就不多做说明了。 样条曲线, B-SPLINE , 每一段 都可以分解成 一个三阶贝赛尔曲线。 在QT 里, cubicto 可以生成三阶贝赛尔曲线。 所以,如果可以找到样条曲线的每一段上的起点p1和终点p4,再加上线上的两个点p2,p3,可以反求出4个控制点 p1,pa,p 阅读全文
posted @ 2022-07-24 11:31 方头狮 阅读(222) 评论(0) 推荐(0)
摘要: NX 1988 系列 在添加螺纹特征时,不能自定义螺纹规格, 从网上找到的资料上讲,改一个XML文件,在文件中添加自定义的螺纹规格,从而实现需要的效果。 自己写了一个小程序,方便手动添加螺纹规格。 效果图 上代码 # nx: threaded from typing import List impo 阅读全文
posted @ 2022-06-08 19:26 方头狮 阅读(331) 评论(0) 推荐(0)