Skip to main content

TickMarker widget, used to mark intervals.

Project description

Tickmarker

Github Build Status

TickMarker widget, used to mark intervals.

See https://kivy-garden.github.io/tickmarker/ for the rendered flower docs.

Please see the garden instructions for how to use kivy garden flowers.

Flower information

Tickmarker exports the TickMarker widget, which places ticks in the center of the widget so that when combined with another widget e.g. a slider it marks intervals. TickMarker supports horizontal and vertical orientation, minor/major ticks and log10 representation.

For example, to create a log slider from 0.1 to 10 starting at 1 with major tick marks at every decade, and minor ticks at every 0.2 decades:

from kivy.uix.slider import Slider
from kivy.garden.tickmarker import TickMarker
class TickSlider(Slider, TickMarker):
pass
s = TickSlider(log=True, min_log=.1, max_log=10, value_log=1,
ticks_major=1, ticks_minor=5)

Or a linear slider from 10 to 200 starting at 60 with major tick marks at every 50 units from start, and minor ticks at every 10 units

s = TickSlider(min=10, max=200, value=60, ticks_major=50, ticks_minor=5)

To create a log progress bar from 10 to 1000 starting at 500 with major tick marks at every decade, and minor ticks at every 0.1 decades::

from kivy.uix.progressbar import ProgressBar
from kivy.garden.tickmarker import TickMarker
class TickBar(ProgressBar, TickMarker):
padding = NumericProperty(0)
min = NumericProperty(0)
orientation = OptionProperty('horizontal', options=('horizontal'))
s = TickBar(log=True, min_log=10, max_log=1000, value_log=500,
ticks_major=1, ticks_minor=10)

When combining with another widget such as a slider, the widget must have min, max, value, orientation, and padding fields. See the second example above as to how you would do this with a ProgressBar. When logarithmic representation is required you read and write to the numerical fields using min_log, max_log and value_log instead of min, max, and value.

Install

To install with pip::

pip install kivy_garden.tickmarker

To build or re-build locally::

PYTHONPATH=.:$PYTHONPATH python setup.py build_ext --inplace

Or to install as editable (package is installed, but can be edited in its original location)::

pip install -e .

CI

Every push or pull request run the GitHub Action CI. It tests the code on various OS and also generates wheels that can be released on PyPI upon a tag. Docs are also generated and uploaded to the repo as well as artifacts of the CI.

TODO

  • add your code

Contributing

Check out our contribution guide and feel free to improve the flower.

License

This software is released under the terms of the MIT License. Please see the LICENSE.txt file.

How to release

See the garden instructions for how to make a new release.

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

kivy_garden.tickmarker-3.0.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distributions

kivy_garden.tickmarker-3.0.0-cp38-cp38-win_amd64.whl (32.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

kivy_garden.tickmarker-3.0.0-cp38-cp38-win32.whl (29.7 kB view details)

Uploaded CPython 3.8 Windows x86

kivy_garden.tickmarker-3.0.0-cp38-cp38-manylinux2010_x86_64.whl (165.4 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

kivy_garden.tickmarker-3.0.0-cp38-cp38-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (31.8 kB view details)

Uploaded CPython 3.8 macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.13+ x86-64 macOS 10.9+ intel macOS 10.9+ x86-64

kivy_garden.tickmarker-3.0.0-cp37-cp37m-win_amd64.whl (32.5 kB view details)

Uploaded CPython 3.7m Windows x86-64

kivy_garden.tickmarker-3.0.0-cp37-cp37m-win32.whl (29.3 kB view details)

Uploaded CPython 3.7m Windows x86

kivy_garden.tickmarker-3.0.0-cp37-cp37m-manylinux2010_x86_64.whl (141.0 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

kivy_garden.tickmarker-3.0.0-cp37-cp37m-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (31.4 kB view details)

Uploaded CPython 3.7m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.13+ x86-64 macOS 10.9+ intel macOS 10.9+ x86-64

kivy_garden.tickmarker-3.0.0-cp36-cp36m-win_amd64.whl (32.4 kB view details)

Uploaded CPython 3.6m Windows x86-64

kivy_garden.tickmarker-3.0.0-cp36-cp36m-win32.whl (29.2 kB view details)

Uploaded CPython 3.6m Windows x86

kivy_garden.tickmarker-3.0.0-cp36-cp36m-manylinux2010_x86_64.whl (138.4 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

kivy_garden.tickmarker-3.0.0-cp36-cp36m-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (31.3 kB view details)

Uploaded CPython 3.6m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.13+ x86-64 macOS 10.9+ intel macOS 10.9+ x86-64

kivy_garden.tickmarker-3.0.0-cp35-cp35m-manylinux2010_x86_64.whl (136.4 kB view details)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

kivy_garden.tickmarker-3.0.0-cp35-cp35m-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (30.6 kB view details)

Uploaded CPython 3.5m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.13+ x86-64 macOS 10.9+ intel macOS 10.9+ x86-64

File details

Details for the file kivy_garden.tickmarker-3.0.0.tar.gz.

File metadata

  • Download URL: kivy_garden.tickmarker-3.0.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.tickmarker-3.0.0.tar.gz
Algorithm Hash digest
SHA256 c4375cad7f2581d46586f6f5486ae1a9bc8199cdefe10e6483ab8863fb63e7fd
MD5 0135718d1fc9a52b7a524c31deec6d50
BLAKE2b-256 99aa1ced1dd0b817f756e7501c65ead20c37134fd5d144f9954784bd57fc56f5

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: kivy_garden.tickmarker-3.0.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 32.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1cbfaabd69baa184431d121c858cdd66223acba981b40e41f53e448f00f0b350
MD5 65cf9995557c39f227e944526714a554
BLAKE2b-256 33be0caebb4960fc814fb078fad6c7dbce9389838950ea5a68137769846edc58

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp38-cp38-win32.whl.

File metadata

  • Download URL: kivy_garden.tickmarker-3.0.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 84037d9cd86c5a35d43ea13a933647c68631c36da82f2007995c3bdb114be988
MD5 ad868b1181ae495974a13e310fb2c758
BLAKE2b-256 4680a49e8bb3d38b9008a4752e7467f4fb5719b877457d39df39949f4b79c14f

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: kivy_garden.tickmarker-3.0.0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 165.4 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b9501ee4cf944ad56cf2075a5e3094740266d86c519526a84582b92ba6fcc471
MD5 8eb3deb0b92fe12faf9a0a83cb05bf5c
BLAKE2b-256 eff0476503f36a2a6bcd8aa605c03fde7e93c56ac5ed00c9e503a0a5d130ad7a

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp38-cp38-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 29e229e85b4d8114f79b7da6caf26b9c0897220265dee8a2c6f758a194f9aadd
MD5 0db56a8d82e9cb2d8184b91276b4a123
BLAKE2b-256 33d6747cfccf219f60b7d669fc417e0403c64d1fc76aefbfa7691315f306e139

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp38-cp38-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp38-cp38-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 2c5d49a83a695954c86471bfe42f8175157f9469d3bdc306997d67e9d837bce4
MD5 d0e562c130678e3511ed392ad70a649e
BLAKE2b-256 e7b45e26485ffee2080fef5b12325d75d34574405b78ccf40ae8a38e55794001

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: kivy_garden.tickmarker-3.0.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 32.5 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 ab91bd4987b1a099fac0d266858ddcd7e71b46543fcea1022bfb45d6489cf705
MD5 45b8f573363d8a00e0b07d211eb40b78
BLAKE2b-256 a96e8352e3eaec42e047a88e31f60a6e36c13295b26bbc1c5caf1948a1e8d005

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp37-cp37m-win32.whl.

File metadata

  • Download URL: kivy_garden.tickmarker-3.0.0-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 29.3 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 8833b1aae6e9389a379cb77c596d30b53d590036b9d634c403c9daa9a2b5c575
MD5 ef7cce0597b986d6408c52bca87e5a95
BLAKE2b-256 df660248974101b2edb6d4cbd5677cd2b61d7b4c60eeb20a62a4935f01842c44

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: kivy_garden.tickmarker-3.0.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 141.0 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0191928c694daebf8f234b70891f0d310eb562b3490a2c64e95f11df2a20c9f2
MD5 515ec473b9e5f90de55a5769bf7b8c57
BLAKE2b-256 69e34575ac2506012cba9656d65081927c1dd9666fc680b5d4d19ea7c3337c38

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 569838490dd8fdb07cd251636cc4451598d1ed89ad691d502ca4e6bfe18213b8
MD5 84c5ed06eee9e399bda3bc40a684cdba
BLAKE2b-256 0b330f8a2c728a5a7e7ee21f56175011d24d0dd5a218e7cd35e58a58c5adfbcc

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp37-cp37m-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp37-cp37m-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 0dec3eed5a10b5e0f5496f1fd4df76a912b5ce0fea572e36c944c48708e33066
MD5 238ce68b5af824bd9dc46fcbf20bc875
BLAKE2b-256 f374df06d9ac0f21bf606337dc7f8b884f83516bec849b191ad5b46778b10903

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: kivy_garden.tickmarker-3.0.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 9fcda72f7ee3574160085314d0aa4cba624b7e1bd7d3b198cabf0ce8ebd0d261
MD5 7c4070c1d734de972b713e9a867f6f7c
BLAKE2b-256 6e9164532ddaa64b9bda2258c84e4ae5f070e7f68bf6dc5c76ea3a50d4c8a559

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp36-cp36m-win32.whl.

File metadata

  • Download URL: kivy_garden.tickmarker-3.0.0-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 948078874453ac13597f985223675442113e8978a1e082e22ef7ec81543a8b62
MD5 912c28e4d8dba4dcd89495075e9fb3af
BLAKE2b-256 87bd1032bc498d975a1e7b1b9a0757168558384338d7dcbbb0c468f54bf4d49a

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: kivy_garden.tickmarker-3.0.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 138.4 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1c43b900502e1bc1a56c36d53ef13f9fe91b8d6dde2237c2b2cb78e71df0fe7b
MD5 adb26231484bb3ceac185ef56ad690d5
BLAKE2b-256 c01a2490360ae5a736f797f1761ba6a6fefbaaa837d362a49344603d08d37432

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 93db897f2871da4c0532c557ba06dcc110202962cafc95eff49538ecbbd088cf
MD5 07f08c218890a6bf64066f06aa642015
BLAKE2b-256 8ba93498591db2cf63a95a261e67f9645ffb6de5216069ef406bae0cf7601163

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp36-cp36m-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp36-cp36m-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 347489c2065da44c10320b54b7bd2b4f67ffc2aa8502cc897a001984a65901ab
MD5 b67f0dd6c7a75e9f23a00c730321d0ed
BLAKE2b-256 ded415aebc8cdd8c684d255ba8a27c27041732c7c313fb2c6bceae581cf0b98b

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp35-cp35m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: kivy_garden.tickmarker-3.0.0-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 136.4 kB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3ca905215b8c11b00547fb766f541229494c30f2f9d7be397b7e00ffaa46d3ed
MD5 780b05d391471dabf0fd153197b0ea1e
BLAKE2b-256 23eecc7237cf6c7a08f3317b0993ecae95023896d33e5c3afd86909025cb9d28

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0cb07f9755e830c06dff03c337f6d96e3d034692876861955fd33eff2dc3ccf6
MD5 afbfd5db51252390c60c491c93d27456
BLAKE2b-256 5a0ef2cae68bc82bdd96a84b5478ae47664831be49b4aeb3e4688c74e7c709f8

See more details on using hashes here.

File details

Details for the file kivy_garden.tickmarker-3.0.0-cp35-cp35m-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for kivy_garden.tickmarker-3.0.0-cp35-cp35m-macosx_10_13_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 6c1f4ffb52d23e7c21caabce8ca0cfb2cc83b37927679e118ceaa6e50e861b96
MD5 ca59b924d44589fc83e807d7d0dcf513
BLAKE2b-256 be0501bf6a5bd2d85a38f45a444f1a16abc584def5a8869d99e4228d1b05ff52

See more details on using hashes here.

Supported by

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