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.2

  1. 修改了rst文件Pypi附图

  2. 修改了rst文件文字内容

  3. 添加了 __init__.py 的库介绍

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.2.tar.gz (7.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: WheelDecide-1.1.2.tar.gz
  • Upload date:
  • Size: 7.4 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.2.tar.gz
Algorithm Hash digest
SHA256 07f646602972852baf4d95143997ff753369682c78bc21b79ae6eb11ed242733
MD5 a68a9992fe68f17cd20f235b1d170574
BLAKE2b-256 d823d0655106196c5c55a1b62ec9e4ddbe93a1a8d1948e1a2bda62d475d0decb

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