Sandals:受GUI库Shoes for Ruby启发的TkInter python包装器

时间:2021-05-18 11:32:09
【文件属性】:
文件名称:Sandals:受GUI库Shoes for Ruby启发的TkInter python包装器
文件大小:40KB
文件格式:ZIP
更新时间:2021-05-18 11:32:09
Python 凉鞋 TkInter的python包装器,受GUI库Shoes for Ruby启发。 旨在简化快速创建简单GUI界面的过程。 所有这些类均来自其TkInter对应对象,因此您可以按照需要使用它们,就像它们原来的TkInter对应对象一样。 为了使用这个库,我建议您简单地将其添加到脚本的顶部。 from sandals import * 如何建立视窗 上下文管理器用于创建窗口,堆栈(列)和流(行)。 例如,这就是使用上下文管理器创建窗口的方式。 代码 图形用户界面 from sandals import * with window ( "My window" ): label ( "Hello world" ) 堆栈和流的工作方式与Ruby库Shoes相同,但还不完全相同。 可以在Ruby Shoes网站上找到有关它们的工作方式的信息: : 如下所述,理想情况下,需要重
【文件预览】:
Sandals-master
----example.py(4KB)
----sandals.py(13KB)
----example images()
--------buttonexample.png(7KB)
--------manipulatingbuttonsexample.png(9KB)
--------simpleexample.png(4KB)
--------example.png(14KB)
--------helloworld.png(1KB)
----README.md(6KB)

网友评论