摘要:
import tkinter as tk window = tk.Tk() window.title("daxiangcai's title") window.geometry('800x400') def printselection(): # 改变 value = lb.get(lb.curse 阅读全文
posted @ 2022-07-05 20:59
树叶本子
阅读(25)
评论(0)
推荐(0)
摘要:
import tkinter as tk window = tk.Tk() window.title("daxiangcai's title") window.geometry('800x400') def insertpoint(): # 插入到光标的位置 var = e.get() # 获取到e 阅读全文
posted @ 2022-07-05 20:37
树叶本子
阅读(33)
评论(0)
推荐(0)
摘要:
import tkinter as tk window = tk.Tk() window.title("daxiangcai's title") window.geometry('800x400') # 窗口大小 onhit = False labeltext = tk.StringVar() de 阅读全文
posted @ 2022-07-05 20:14
树叶本子
阅读(61)
评论(0)
推荐(0)
摘要:
这是因为我我将自己的py文件命名为了tkinter.py,导致循环导入库,重命名即可 阅读全文
posted @ 2022-07-05 20:02
树叶本子
阅读(1134)
评论(0)
推荐(0)
摘要:
%%manim -v WARNING -qh s1 class s1(Scene): def construct(self): t1 = Text("链烷烃的构象", font="STZhongsong") self.play(DrawBorderThenFill(t1)) self.play(Fa 阅读全文
posted @ 2022-07-05 14:52
树叶本子
阅读(69)
评论(0)
推荐(0)
摘要:
使用np.array(),比如: np.array([dot1.get_x(),dot2.get_y(),0]) 阅读全文
posted @ 2022-07-04 20:43
树叶本子
阅读(33)
评论(0)
推荐(0)
摘要:
目的是想要将svg移动到函数的某个点上: point = ax.c2p(1,1) self.play(GrowFromPoint(point, point.get_center())) 少了一步,要先将point变成dot: point = ax.c2p(120, 12.1) point = Dot 阅读全文
posted @ 2022-07-04 11:40
树叶本子
阅读(219)
评论(0)
推荐(0)
摘要:
少写了animate: self.play(svg.scale(0.5)) 阅读全文
posted @ 2022-07-04 11:33
树叶本子
阅读(112)
评论(0)
推荐(0)
摘要:
ax = Axes( x_range=, y_range=, x_length=, y_length=, axis_config = {"include_tip": False} ).add_coordinates() labels = ax.get_axis_labels( x_label=, y 阅读全文
posted @ 2022-07-04 11:01
树叶本子
阅读(262)
评论(0)
推荐(0)
摘要:
首先要知道,如果对一个Mobject使用多个动画,AnimationGroup()只会执行最后一个,Succession()大部分情况下会将这些动画依次播放,少数情况下只会执行最后一个 这是比较成熟的解决方法: 1、实现同时开始,持续时间不同的多个动画 使用Succession(),比如: t1 = 阅读全文
posted @ 2022-07-03 11:21
树叶本子
阅读(185)
评论(0)
推荐(0)
浙公网安备 33010602011771号