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.setTitle("Wheel") <- 一个str类型,代表窗口的标题

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 #×

使用

#setTitle值默认为"Wheel"

#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.3

  1. 添加了 title() 命令

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

Uploaded Source

File details

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

File metadata

  • Download URL: WheelDecide-1.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 044947b86ac62a1480b724462fca52d024699f43f7b0d83f0c816b7d0cc177f3
MD5 1a3ca4a5baad613e88ba01b5704444e5
BLAKE2b-256 8b5d69d3110d1bbb17d4c3be56325d62dc58a519b3c55de2408056a3fbbb6648

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