Skip to main content

This is a package which can make a wheel to decide.

Project description

License Pypi Author Github

安装方法

通过 pip 安装

pip install WheelDecide

更新

pip install WheelDecide --upgrade

使用方法

导入

import WheelDecide

使用

w = WheelDecide.wheel()

w.setMinsize(300,300) <- 两个int类型,代表窗口的大小(长和宽)

w.setBtnSize(50) <- 一个int类型,代表元素大小(边长)

w.setTimeInterval(1) <- 一个int类型,代表时间间隔

w.setUnselectedBgcolor("white") <- 一个str类型,代表未选中的元素背景颜色

w.setSelectedBgcolor("red") <- 一个str类型,代表已选中的元素背景颜色

w.setupwheel(["1","2","3","4","a","b","c","d","!","?","#","%"]) <- 十二个str类型组成的list,代表转盘的元素

!注意事项!

导入

import WheelDecide #√

import wheeldecide #×

使用

#setMinsize值默认为300,300

#setBtnSize值默认为50

#setTimeInterval值默认为1

#setUnselectedBgcolor值默认为"white"

#setSelectedBgcolor值默认为"red"

### setupwheel永远是最后一条指令!!! ###

关于作者

Author

Jason4zh

Email

13640817984@163.com

Package

https://pypi.org/project/WheelDecide/

Github

https://github.com/Jason4zh/WheelDecide/

print("Thank you for using WheelDecide!")

本次更新修改v1.1.1

  1. 增加了调整窗口大小函数

  2. 增加了调整元素大小函数

  3. 修复了函数名冲突的问题

  4. 修复了初始化变量冲突的问题

  5. 修改了rst文件Pypi附图

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

WheelDecide-1.1.1.tar.gz (7.3 kB view details)

Uploaded Source

File details

Details for the file WheelDecide-1.1.1.tar.gz.

File metadata

  • Download URL: WheelDecide-1.1.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.11 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.5

File hashes

Hashes for WheelDecide-1.1.1.tar.gz
Algorithm Hash digest
SHA256 56324e8dcdeeca8256185dc478185fad211adf4678e12192ed8254763874e2c1
MD5 8f6899691818c3066dcc2cd64f42b1fe
BLAKE2b-256 617218c26f90077de0f6d595e4e6624ecd966f1f7aa49106fc52b9b0b5af09c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page