一个显示一些定制tkinter模块的模块

tkhelper的Python项目详细描述


Tkinter助手

显示一些自定义tkinter模块的模块。在

入门

您可以直接从GitHub下载这个项目,也可以使用Python的packagemanager(pip)。在

先决条件

有关先决条件,请参见requirements.txt。在

安装

使用pip安装此库。在

pip install tkhelper

运行测试

可以运行doctest和单元测试。在

运行doctests

使用python doctest。在

^{pr2}$

运行单元测试

单元测试仍在开发中。在

示例用法

importtkinterastkfromtkhelper.widgetsimportResizableLabel,ResizableButtonfromtkhelper.progressbars.circularimportTransparentSpinnerBar,SpinnerLoadingBarroot=tk.Tk()circular_bar=TransparentSpinnerBar(root,kind=SpinnerLoadingBar)defstart_bar():circular_bar.start()resizable_button.config(command=stop_bar,text="Click the button to stop the circular loading bar")defstop_bar():circular_bar.stop()resizable_button.config(command=start_bar,text="Click the button to run the circular loading bar")resizable_label=ResizableLabel(root,text="Example resizable label",weight=0.9,resize=True)resizable_label.grid()resizable_button=ResizableButton(root,text="Click the button to run the circular loading bar",weight=0.5,resize=True,command=start_bar)resizable_button.grid()root.geometry("500x500")root.mainloop()

版本信息

版本1.0.0。在

作者

许可证

这个项目是在MIT许可下授权的-请参阅LICENSE文件了解详细信息

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Spring freemarker多模板加载程序路径   在java插件中从控制台获取输入   java在包中创建继承类   网页抓取Java Jsoup网页抓取   java在线程内创建一个对象,而true条件具有相同的引用   java如何根据空格数拆分字符串   java新的安卓 studio更新中的配置文件“app”是什么?   java在将ArrayList写入/读取到文件时出现奇怪的问题   java Reg替换文本块第一次出现+最后一次出现   java当我单击任何RecyclerView列表项时,如何在MainActivity的EditText中显示特定的单击项?   JAVA XML删除节点仅删除第一个外观   java如何在数组中查找特定值   java SVG/矢量图形对象布尔运算(并集、交集、减法)   java在Android中创建线程需要多长时间   尝试从JBOSS联系Oracle LDAP服务器时发生java连接重置异常   java基于参数获取特定的实现实例   使用java就地修改文件内容   java MonetaryException:未加载MonetaryAmountsSingletonSpi   java接受用户的不同输入并使其触发完全相同的代码段的最短方法是什么   Spring 3.2.8应用程序中未找到java HTTP 404错误